From 94e04b791781a8d80238d40b39995b416c8925fe Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 25 May 2021 00:11:13 +0000 Subject: [PATCH] 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 --- tools/webpack/media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/webpack/media.js b/tools/webpack/media.js index ff86d8eb8d..a9f96851eb 100644 --- a/tools/webpack/media.js +++ b/tools/webpack/media.js @@ -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$/,