Jhernandez has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372832 )

Change subject: Chore: Use the same naming scheme in dev for chunks
......................................................................

Chore: Use the same naming scheme in dev for chunks

We don't add the hash for entry points in dev, this makes the same
naming scheme for chunk files in dev.

Change-Id: I36f5618cd6998d1c41d8c87f731ae73c86ba5969
---
M webpack.config.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/32/372832/1

diff --git a/webpack.config.js b/webpack.config.js
index df75644..1c51573 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -39,7 +39,7 @@
     // Use chunkhash instead of hash to get per-file/chunk hashing instead of
     // global build hashing, to improve caching from browsers.
     // See: https://webpack.js.org/guides/caching/#output-filenames
-    chunkFilename: "[name].[chunkhash].js",
+    chunkFilename: isProd ? "[name].[chunkhash].js" : "[name].js",
 
     // Use constant filenames for developmental server.
     filename: isProd ? "[name].[chunkhash].js" : "[name].js"

-- 
To view, visit https://gerrit.wikimedia.org/r/372832
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I36f5618cd6998d1c41d8c87f731ae73c86ba5969
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to