Skip to content

Instantly share code, notes, and snippets.

@dandean
Last active January 4, 2016 06:29
Show Gist options
  • Select an option

  • Save dandean/8582036 to your computer and use it in GitHub Desktop.

Select an option

Save dandean/8582036 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n',
...
},
dist: {
files: {
'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
}
}
},
foo: {
...
},
bar: {
...
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-foo');
grunt.loadNpmTasks('grunt-contrib-bar');
};
uglify:
uglifyjs [input files] [options]
foo:
...
bar:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment