You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some code requires a shebang (#!) to be present at the beginning of the file to instruct the program loader which python interpreter to use (e.g. "#!/usr/bin/python").
Since the shebang starts with a #, it is seen as a comment by python-minifier, and gets stripped from the minified code.
Could you add an exception to the minifier to leave the #! at the very beginning of the file alone?
The text was updated successfully, but these errors were encountered:
This is related to #8, but I don't see any progress in that pull request for a year and a half. I had to do the following workaround to retain the shebang:
Some code requires a shebang (#!) to be present at the beginning of the file to instruct the program loader which python interpreter to use (e.g. "#!/usr/bin/python").
Since the shebang starts with a #, it is seen as a comment by python-minifier, and gets stripped from the minified code.
Could you add an exception to the minifier to leave the #! at the very beginning of the file alone?
The text was updated successfully, but these errors were encountered: