Niedzielski has submitted this change and it was merged. (
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(-)
Approvals:
Niedzielski: Verified; Looks good to me, approved
diff --git a/webpack.config.js b/webpack.config.js
index aa12c30..d496471 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: merged
Gerrit-Change-Id: I36f5618cd6998d1c41d8c87f731ae73c86ba5969
Gerrit-PatchSet: 4
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits