grunt-minified

A grunt plugin to minify given JavaScript files

grunt-minified

A grunt plugin to minify given JavaScript files

Install this grunt plugin next to your project's Gruntfile.js with:

npm install grunt-minified

Then add this line to your project's Gruntfile.js:

grunt.loadNpmTasks('grunt-minified');

Add something like this in yer gruntfile:

minified : {
  files: {
    src: [
      '/js/src/**/*.js',                
      '/js/src/*.js'
    ],
    dest: '/js/min/'
  }
}

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

(Until v1.0.0, this will only be updated when major or breaking changes are made)

Copyright (c) 2012 Alexander Vassbotn Røyne-Helgesen
Licensed under the GPL license.