From 37dd83ab7e4ba7bb756a2a9444d556a2d924736a Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 17 Jan 2019 04:23:38 +0000 Subject: [PATCH] Build Tools: Uglify `underscore.min.js` while building. This avoids a `sourceMappingURL` being in the minified file, as we don't ship source maps. Props pento, laghee. Fixes #44560. git-svn-id: https://develop.svn.wordpress.org/trunk@44632 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 67b0650689..d0d00c9a08 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -177,19 +177,12 @@ module.exports = function(grunt) { [ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ], [ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ], [ WORKING_DIR + 'wp-includes/js/underscore.js' ]: [ './node_modules/underscore/underscore.js' ], - [ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ] }, { expand: true, cwd: './node_modules/jquery-ui/ui/', src: '*.js', dest: SOURCE_DIR + 'wp-includes/js/jquery/ui/' - }, - { - expand: true, - cwd: './node_modules/underscore/', - src: 'underscore.js', - dest: SOURCE_DIR + 'wp-includes/js/' } ] },