Make WordPress Core

Changeset 50940


Ignore:
Timestamp:
05/20/2021 12:18:43 PM (5 years ago)
Author:
gziolo
Message:

Build: Use hashed/deterministic moduleIDs in webpack config

Props peterwilsoncc, desrosj.
Fixes #53192.

File:
1 edited

Legend:

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

    r50929 r50940  
    293293                        ],
    294294                },
     295                optimization: {
     296                        moduleIds: 'named',
     297                },
    295298                plugins: [
    296299                        new DefinePlugin( {
     
    365368                config.mode = 'production';
    366369                config.optimization = {
    367                         minimize: false
     370                        minimize: false,
     371                        moduleIds: 'hashed',
    368372                };
    369373        }
Note: See TracChangeset for help on using the changeset viewer.