A simple Javascript & CSS minifier.
A Minify
button should appear in the status bar when opening a .js
or a .css
file. You can also run Minify document
by clicking F1
.
By default the extension will look for .uglifyrc
and .cleancssrc
.
You can change the paths in settings. After changing settings in any of the config files, make sure to reload with Minify: Reload config
. If the reload fails, make sure you don't have syntax errors in your config. If you want to go back to the default config, rename/delete your config file(s).
Minify on save can be enabled in settings.
Make sure to reload your config with Minify: Reload config
to make sure your changes are applied!
Source maps can be generated by changing es6-css-minify.genCSSmap
and es6-css-minify.genJSmap
respectively. Make sure to run Minify: Reload config
.