grunt-uglifyjs-multiply
each uglify mulitply files
i.e:
source files
src/sample.js
src/dir/sample1.js
src/dir/childdir/sample3.js
uglify files
dest/src/sample_min.js
dest/src/dir/sample1_min.js
dest/src/dir/childdir/sample3_min.js
Getting Started
This plugin requires Grunt ~0.4.4
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-uglifyjs-multiply --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-uglifyjs-multiply');
The "uglifyjs_multiply" task
Overview
In your project's Gruntfile, add a section named uglifyjs_multiply
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
uglifyjs_multiply: {
options: {
},
your_target: {
},
},
});
Options
See grunt-contrib-uglify
Usage Examples
grunt.initConfig({
uglifyjs_multiply: {
options: {},
files: {
'dest/': ['src/**/*.js'],
},
},
});
Release History
- 2014-05-02 v0.1.0 First release for Grunt 0.4.4.
- 2014-05-03 v0.1.1 declare files to include in project.