Skip to content

2.6.0

Compare
Choose a tag to compare
@dflook dflook released this 10 Apr 17:44
5fd495c

Added

  • A new option to preserve the shebang line from the source file, which is enabled by default
  • More flexible file processing options for the pyminify command:
    • A new --output argument for writing the minified output to a file without having to use shell redirection
    • A new --in-place option which overwrites the specified path with the minified output
    • path arguments may be directories, which minifies all *.py files below that directory
    • Multiple path arguments may be specified, which will all be minified
  • Type information is included in the package to enable type checking of the public functions

Fixed

  • No longer assumes files read from stdin are utf-8.