mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
8045d9407d
commit
c5ac9983b2
@ -293,7 +293,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
],
|
||||
},
|
||||
optimization: {
|
||||
moduleIds: 'named',
|
||||
moduleIds: mode === 'production' ? 'hashed' : 'named',
|
||||
},
|
||||
plugins: [
|
||||
new DefinePlugin( {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user