grunt-mindirect

0.1.3 • Public • Published

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: {
	dist: ['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.

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-mindirect

Weekly Downloads

13

Version

0.1.3

License

none

Last publish

Collaborators

  • buu.nguyen