From 8afa466ffdedeaea065b109a89468eaec5fd37bb Mon Sep 17 00:00:00 2001 From: Guillaume Martigny Date: Tue, 23 May 2017 13:05:58 +0200 Subject: [PATCH] Update to UglifyJS3 --- Gruntfile.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 813ba48..3b7db33 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -77,14 +77,13 @@ module.exports = function (grunt) { }, prod: { options: { - preserveComments: false, + wrap: "G", compress: { global_defs: { IS_DEV: false, VERSION: VERSION } - }, - enclose: {} + } }, files: { "dist/js/script.js": [sourceDir.js] diff --git a/package.json b/package.json index d59ecf9..be5c8ce 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "grunt": "^1.0.1", "grunt-contrib-less": "^1.4.0", - "grunt-contrib-uglify": "^2.0.0", + "grunt-contrib-uglify": "^3.0.1", "grunt-contrib-watch": "^1.0.0", "grunt-jscs": "^3.0.1", "grunt-lesslint": "^4.0.0",