rspivak / slimit

SlimIt - a JavaScript minifier/parser in Python
MIT License
551 stars 94 forks source link

Allow certain comments in minified output #46

Closed jakewan closed 9 years ago

jakewan commented 11 years ago

It's nice to be able to designate certain comments to remain in minified files (e.g. license info).

In source file, for example:

/* omit this comment from minified output */
/*! include this comment in minified output */

By the way, thank you very much for making this project available. Nice work!

rspivak commented 11 years ago

You're welcome :)

Preserving/removing a license header in a comment located at the top of a file is pretty simple but handling a comment located at any other location in the file will require tons of changes to the existing parser...