Build: Use deterministic module ids in webpack for media.

Used `hashed` IDs rather the `named` IDs to reduce file size and remove references to non-existent paths in the final build.

Follow-up for [50940,50984].
Props gziolo, peterwilsoncc.
See #53192.



git-svn-id: https://develop.svn.wordpress.org/trunk@50985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2021-05-25 00:11:13 +00:00
parent 187c7fc725
commit 94e04b7917
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
},
optimization: {
minimize: true,
moduleIds: 'named',
moduleIds: 'hashed',
minimizer: [
new UglifyJsPlugin( {
include: /\.min\.js$/,