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
This commit is contained in:
Gary Pendergast 2019-01-17 04:23:38 +00:00
parent a3fe5b75e1
commit 37dd83ab7e
1 changed files with 0 additions and 7 deletions

View File

@ -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/'
}
]
},