HookyQR / VSCodeMinify

Add minify function to VSCode 0.10+
53 stars 21 forks source link

PreserveComments #5

Open binaryjam opened 8 years ago

binaryjam commented 8 years ago

More of a feature request. I see you use uglify which has a preserveComments setting, can minify have that too ? Or perhaps it does and I can't figure it out ? I was hoping to do something like this "minify.minifyExistingOnSave": false, "minify.js": { "preserveComments":"license,version" }

HookyQR commented 8 years ago

While looking into this, I've noticed that I'm not using the settings correctly in the first place. I'll be pushing something for you today. Watch this space.

HookyQR commented 8 years ago

0.3.0 released. Good luck.

If you want comments with licence and comments with version, use:

"minify.js": {
    "output": {
        "comments": "/licence|version/i"
    }
}