From ae41fa3011959eee01d8a43a492737137565440b Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Tue, 10 Mar 2015 11:27:17 +0100 Subject: [PATCH] fix uglify TypeError This patch fix the following uglify error: TypeError: Cannot assign to read only property 'warnings' of true Or we can upgrade grunt-contrib-uglify to latest v0.8.0 version which should also fix the issue. This issue has been reported on grunt-contrib-uglify bug tracker: https://github.com/gruntjs/grunt-contrib-uglify/issues/298 --- tasks/options/uglify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/options/uglify.js b/tasks/options/uglify.js index ab97b756c0b..583dbab78cb 100644 --- a/tasks/options/uglify.js +++ b/tasks/options/uglify.js @@ -7,7 +7,7 @@ module.exports = function(config) { cwd: '<%= destDir %>', options: { quite: true, - compress: true, + compress: {}, preserveComments: false, banner: '<%= meta.banner %>' }