Created
August 10, 2014 21:38
-
-
Save gabidavila/ced66cea201d14d0f34d 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
// Part of Gruntfile.js, this is the Uglify section | |
uglify: { | |
options: { | |
// Grunt can replace variables names, but may not be a good idea for you, I leave | |
// this option as false | |
mangle: false | |
}, | |
js: { | |
// Grunt will search for "**/*.js" when the "minify" task | |
// runs and build the appropriate src-dest file mappings then, so you | |
// don't need to update the Gruntfile when files are added or removed. | |
files: [{ | |
expand: true, | |
cwd: '<%= paths.js %>', | |
src: '**/*.js', | |
dest: '<%= paths.js %>min', | |
ext: '.min.js', | |
}], | |
} | |
}, | |
// This is at the end of the file, the plugin section: | |
// Plugin loading | |
grunt.loadNpmTasks('grunt-contrib-compass'); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment