Skip to content

Instantly share code, notes, and snippets.

@leomicheloni
Created November 26, 2014 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leomicheloni/f3242b8335df4c7175c0 to your computer and use it in GitHub Desktop.
Save leomicheloni/f3242b8335df4c7175c0 to your computer and use it in GitHub Desktop.
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
uglify : {
options : {
banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build : {
src : 'js/*.js',
dest : 'package/code.min.js'
}
},
compress:{
main: {
options: {
mode: "gzip"
},
expand: true,
src: ["package/*.*"],
dest: "public/"
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-compress');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment