Skip to content

The shebang is stripped from the minified python code #34

Closed
@blikjeham

Description

@blikjeham

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions