- Enable minification for the frontend JS bundle

- Make sure we are pegged to version 3.3.3 of D3
This commit is contained in:
Joseph Schorr 2014-04-15 15:58:00 -04:00
parent 7aab6a9fdd
commit 5fa4733a2f
4 changed files with 17 additions and 4 deletions

View file

@ -32,12 +32,24 @@ module.exports = function(grunt) {
cssmin: {
'../static/dist/<%= pkg.name %>.css': ['../static/lib/**/*.css', '../static/css/*.css']
},
uglify: {
options: {
mangle: false
},
js_min: {
files: {
'../static/dist/<%= pkg.name %>.min.js': ['../static/dist/<%= pkg.name %>.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default task(s).
grunt.registerTask('default', ['concat', 'cssmin']);
grunt.registerTask('default', ['concat', 'cssmin', 'uglify']);
};