diff --git a/grunt/config/uglify.js b/grunt/config/uglify.js new file mode 100644 index 0000000..2c0f512 --- /dev/null +++ b/grunt/config/uglify.js @@ -0,0 +1,3 @@ +module.exports = [ + { dest: 'rvc.min.js', src: 'rvc.js' } +]; \ No newline at end of file diff --git a/grunt/tasks/default.js b/grunt/tasks/default.js index 9ae6006..cc493f0 100644 --- a/grunt/tasks/default.js +++ b/grunt/tasks/default.js @@ -7,7 +7,8 @@ module.exports = function ( grunt ) { 'requirejs', //'qunit', 'concat', - 'jsbeautifier' + 'jsbeautifier', + 'uglify' ]); }; diff --git a/package.json b/package.json index 3070ce9..1ce2cff 100755 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "grunt-contrib-requirejs": "~0.4.3", "grunt-contrib-jshint": "~0.9.2", "grunt-contrib-concat": "~0.4.0", + "grunt-contrib-uglify": "0.5.0", "amdclean": "~1.5.0", "grunt-jsbeautifier": "~0.2.6", "grunt-contrib-qunit": "~0.4.0",