From e2d52378517343d5eacf3bff0e9b4d00fd6d0847 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 7 Apr 2015 04:37:24 +0000 Subject: [PATCH] Don't override minified libraries included in core A number of libraries that we include in core come with minified versions that we also include in core. The build process shouldn't override them. Fixes #31477 Props ocean90, jorbin git-svn-id: https://develop.svn.wordpress.org/trunk@32066 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f4436f2ded..2eee5debb4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -408,13 +408,14 @@ module.exports = function(grunt) { 'wp-includes/js/tinymce/plugins/wp*/plugin.js', // Exceptions + '!wp-admin/js/bookmarklet.*', // Minified and updated in /src with the precommit task. See uglify:bookmarklet. '!wp-admin/js/custom-header.js', // Why? We should minify this. '!wp-admin/js/farbtastic.js', '!wp-admin/js/iris.min.js', - '!wp-admin/js/bookmarklet.*', // Minified and updated in /src with the precommit task. See uglify:bookmarklet. - '!wp-includes/js/backbone.min.js', + '!wp-includes/js/backbone.*', + '!wp-includes/js/masonry.min.js', '!wp-includes/js/swfobject.js', - '!wp-includes/js/underscore.min.js', + '!wp-includes/js/underscore.*', '!wp-includes/js/zxcvbn.min.js' ] },