0.1.3 • Published 11 years ago
grunt-mindirect v0.1.3
grunt-mindirect
Grunt multi-task for minifying JS files and overwriting them with minified contents.
This is different from the built-in min task which creates one single output with concatenated minified contents).
This task is typically used together with grunt-contrib-copy task.
Getting Started
Install the module with: npm install grunt-mindirect
Then load it from your grunt.js
file:
grunt.loadNpmTasks('grunt-mindirect');
In your grunt.js
file, add something like below:
mindirect: {
files: ['dist/libs/editor.js', 'dist/scripts/*.js']
}
After the task is run, all matched files will have their contents minified.
License
Copyright (c) 2012 Buu Nguyen Licensed under the MIT license.