Created
January 16, 2016 22:41
-
-
Save avdg/4226e11ddd761cdfa6ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"use strict"; | |
// Note: _ in file name are directory separators due to gists not accepting subdirectories | |
function someCode(){}; |
This file contains hidden or 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
"use strict"; | |
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.initConfig({ | |
uglify: { | |
options: { | |
compress: { | |
global_defs: { | |
"EO_SCRIPT_DEBUG": false | |
}, | |
dead_code: true | |
}, | |
banner: '/*! <%= grunt.template.today("yyyy-mm-dd HH:MM") %> */\n' | |
}, | |
build: { | |
files: [{ | |
expand: true, // Enable dynamic expansion. | |
cwd: 'assets/js', | |
dest: 'assets/js', | |
src: [ '**/*.js'], // Actual pattern(s) to match. | |
ext: '.min.js', // Dest filepaths will have this extension. | |
}] | |
} | |
} | |
}); | |
}; |
This file contains hidden or 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
{ | |
"name": "just-testing-stuff", | |
"version": "0.1.0", | |
"description": "test 1.2.3.", | |
"dependencies": { | |
"grunt": "0.4.x", | |
"grunt-cli": "0.1.x", | |
"grunt-contrib-uglify": "0.11.0" | |
}, | |
"repository": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment