Make WordPress Core

Changeset 51035


Ignore:
Timestamp:
05/27/2021 12:15:19 AM (3 years ago)
Author:
peterwilsoncc
Message:

Build tools: Use hashed module IDs for minified files.

Further improves webpack configuration for editor files to use hashed module IDs in the compressed (*.min.js) production files.

Follow up to [50940].

Props gziolo, peterwilsoncc.
Fixes #53192.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/webpack/packages.js

    r50996 r51035  
    294294        },
    295295        optimization: {
    296             moduleIds: 'named',
     296            moduleIds: mode === 'production' ? 'hashed' : 'named',
    297297        },
    298298        plugins: [
Note: See TracChangeset for help on using the changeset viewer.