From 9bc228a31ebc181f0d0d439088d5bc0b9a8ca10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Wed, 9 Jul 2014 12:22:11 +0200 Subject: [PATCH] Use grunt-contrib-uglify --- grunt/config/uglify.js | 3 +++ grunt/tasks/default.js | 3 ++- package.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 grunt/config/uglify.js 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",