mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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$/,
|
||||
|
||||
Reference in New Issue
Block a user