1.10.0 • Published 10 years ago

grunt-jsmin-sourcemap v1.10.0

Weekly downloads
190
License
-
Repository
github
Last release
10 years ago

grunt-jsmin-sourcemap

Grunt task for JSMin and sourcemap

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-jsmin-sourcemap

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

grunt.loadNpmTasks('grunt-jsmin-sourcemap');

Documentation

grunt-jsmin-sourcemap is registered under the jsmin-sourcemap task. Your initConfig should look similar to this:

grunt.initConfig({
  'jsmin-sourcemap': {
    all: {
      // Source files to concatenate and minify (also accepts a string and minimatch items)
      src: ['public/js/jquery.js', 'public/js/underscore.js'],

      // Destination for concatenated/minified JavaScript
      dest: 'dist/js/all.min.js',

      // Destination for sourcemap of minified JavaScript
      destMap: 'dist/js/all.js.map'
    }
  }
});

Contributing

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

License

Copyright (c) 2012 Todd Wolfson Licensed under the MIT license.

1.10.0

10 years ago

1.9.0

10 years ago

1.8.3

10 years ago

1.8.2

10 years ago

1.8.1

10 years ago

1.8.0

11 years ago

1.7.2

11 years ago

1.7.1

11 years ago

1.7.0

11 years ago

1.6.0

11 years ago

1.5.6

12 years ago

1.5.5

12 years ago

1.5.4

12 years ago

1.5.3

12 years ago

1.5.2

12 years ago

1.5.1

12 years ago

1.5.0

12 years ago

1.4.0

12 years ago

1.3.0

12 years ago

1.2.0

12 years ago

1.1.1

12 years ago

1.1.0

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago