From 2c5032e29dbf0c28dac875c2eac896effcec46ae Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 5 Oct 2019 21:59:32 +0000 Subject: [PATCH] Build/Test: Update Grunt Uglify options Follow up to [46408] Sometimes you need to take documentation literally. And sometimes you need to take it seriously. Deprecations and replacements in uglify are a case where I took them literally and should have taken them seriously. See #48203. git-svn-id: https://develop.svn.wordpress.org/trunk@46409 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ffccd67972..b31cb61fc7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -665,8 +665,9 @@ module.exports = function(grunt) { }, uglify: { options: { - 'output.ascii_only': true, - '!ie8': false + output: { + ascii_only: true + } }, core: { expand: true, @@ -706,7 +707,9 @@ module.exports = function(grunt) { jqueryui: { options: { // Preserve comments that start with a bang. - 'output.comments': /^!/ + output: { + comments: /^!/ + } }, expand: true, cwd: 'node_modules/jquery-ui/ui/',