Skip to content

Instantly share code, notes, and snippets.

@avdg
Created January 16, 2016 22:41
Show Gist options
  • Save avdg/4226e11ddd761cdfa6ff to your computer and use it in GitHub Desktop.
Save avdg/4226e11ddd761cdfa6ff to your computer and use it in GitHub Desktop.
"use strict";
// Note: _ in file name are directory separators due to gists not accepting subdirectories
function someCode(){};
"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.
}]
}
}
});
};
{
"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