Make WordPress Core

Changeset 44632


Ignore:
Timestamp:
01/17/2019 04:23:38 AM (6 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r44529 r44632  
    178178                        [ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ],
    179179                        [ WORKING_DIR + 'wp-includes/js/underscore.js' ]: [ './node_modules/underscore/underscore.js' ],
    180                         [ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ]
    181180                    },
    182181                    {
     
    185184                        src: '*.js',
    186185                        dest: SOURCE_DIR + 'wp-includes/js/jquery/ui/'
    187                     },
    188                     {
    189                         expand: true,
    190                         cwd: './node_modules/underscore/',
    191                         src: 'underscore.js',
    192                         dest: SOURCE_DIR + 'wp-includes/js/'
    193186                    }
    194187                ]
Note: See TracChangeset for help on using the changeset viewer.