grunt-node-minify
Grunt plugin for node-minify
Getting Started
This plugin requires Grunt >=1.0.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-node-minify --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "grunt-node-minify" task
Overview
In your project's Gruntfile, add a section named node-minify
to the data object passed into grunt.initConfig()
.
grunt;
Options
See node-minify for compressors and compressor options {...}
which can be
specified.
Usage Examples
Default Options
In this example, the default options are used to minify javascript files recursively found in src/
to the file dest/gcc.min.js
, using google-closure-compiler-js.
grunt;
Custom Options
In this example, custom options are used to minify javascript files recursively found in the publicFolder
(src) to the file dest/uglifyjs.min.js
, using uglifyjs with options { .. }
.
grunt;
Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
- 1.5.0 : Updates dependencies (google-closure-compiler-js).
- 1.4.0 : Updates dependencies (node-minify, google-closure-compiler-js, and others).
- 1.3.6 : Updates dependencies (google-closure-compiler-js).
- 1.3.5 : Updates dependencies (google-closure-compiler-js).
- 1.3.4 : Updates dependencies (google-closure-compiler-js).
- 1.3.3 : Updates dependencies (google-closure-compiler-js).
- 1.3.2 : Updates dependencies (node-minify).
- 1.3.1 : Updates dependencies (chalk).
- 1.3.0 : Updates dependencies (node-minify, chalk).
- 1.2.4 : Updates dependencies (google-closure-compiler-js, node-minify).
- 1.2.3 : Updates dependencies (google-closure-compiler-js).
- 1.2.2 : Updates dependencies (google-closure-compiler-js, chalk).
- 1.2.1 : Updates dependencies.
- 1.2.0 : Remove bluebird dependency. Fix bugs.
- 1.1.7 : Updates dependencies (node-minify).
- 1.1.6 : Updates dependencies.
- 1.1.5 : Updates dependencies.
- 1.1.4 : Updates dependencies.
- 1.1.3 : Updates dependencies.
- 1.1.2 : Updates dependencies.
- 1.1.1 : Updates dependencies.
- 1.1.0 : Adds color to console output.
- 1.0.1 : Initial release.