Skip to content

Instantly share code, notes, and snippets.

@danrasmuson
Last active August 29, 2015 14:07
Show Gist options
  • Save danrasmuson/3e32c61f1150cc3db745 to your computer and use it in GitHub Desktop.
Save danrasmuson/3e32c61f1150cc3db745 to your computer and use it in GitHub Desktop.
npm install grunt-contrib-uglify --save-dev
// root
// tasks
// options
// uglify.js
module.exports = {
dist: {
src: [
// files to combine
'js/*',
],
// destination
dest: 'build/production.js'
}
};
// finally add the task to your Gruntfile.js
grunt.registerTask('default', ['uglify']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment