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.



git-svn-id: https://develop.svn.wordpress.org/trunk@51035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson 2021-05-27 00:15:19 +00:00
parent 8045d9407d
commit c5ac9983b2

View File

@ -293,7 +293,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
],
},
optimization: {
moduleIds: 'named',
moduleIds: mode === 'production' ? 'hashed' : 'named',
},
plugins: [
new DefinePlugin( {