brunch-js-minify-js-files
v0.0.2
Published
Minify all JavaScript files inside the /public folder on --optimize (or -P)
Downloads
3
Maintainers
Readme
brunch-js-minify-js-files
Minify all JavaScript files after brunch compile has been done. Build to help minify files that brunch doesn't minify them or are not in the regular JavaScript folders (For example: files that are in the assets folder that you don't concatenate).
Install
Add the plugin to package.json
:
dependencies": {
...
"brunch-js-minify-js-files": "git://github.com/bogdanteodoru/brunch-js-minify-js-files.git"
}
Config
Just add the folowing into your config.coffee
/brunch-config.coffee
file:
minifyJsFiles:
active: true # if false it doesn't do anything ;)
fileExtensions: [".js", ".json"] # optional: when not specified, ".js" is used.