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.
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: {
dist: ['dist/libs/editor.js', 'dist/scripts/*.js']
}
After the task is run, all matched files will have their contents minified.
Copyright (c) 2012 Buu Nguyen Licensed under the MIT license.