Last active
August 29, 2015 14:07
-
-
Save danrasmuson/3e32c61f1150cc3db745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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