From 0ba60695c4ac1e372a5d415b77552c5f99aeaa9c Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 9 Oct 2023 11:30:34 +0800 Subject: [PATCH] Synchronize build There were reports of page-load failures, which also coincide with the execution of the "js cleanup" script. While we investigate if the script is problematic, rebuild to ensure there aren't any unintended lost chunks. --- .env.defaults | 2 +- web/webpack.config.js | 2 +- webpack.base.config.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.defaults b/.env.defaults index 2abf246d31..0074e96e38 100644 --- a/.env.defaults +++ b/.env.defaults @@ -4,7 +4,7 @@ # --- Minimum Version (Format: YYYYMMDDNNN) --- # Bump this when we want to nudge the user to refresh. -MINIMUM_VERSION=20230921001 +MINIMUM_VERSION=20231009001 # This is 'false' in the production instances: IGNORE_MINIMUM_VERSION=true diff --git a/web/webpack.config.js b/web/webpack.config.js index a823c2aaaf..8a4eb2d00d 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -197,7 +197,7 @@ const webConfig = { chunkFilename: ({ chunk }) => { return chunk.name && chunk.name.startsWith('locale-') ? 'locales/[name]-[contenthash].js' - : '[name]-[contenthash]-xyz.js'; + : '[name]-[contenthash]-1009.js'; }, assetModuleFilename: 'img/[name][ext]', }, diff --git a/webpack.base.config.js b/webpack.base.config.js index 1bccf89a59..fe9040828f 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -138,8 +138,8 @@ let baseConfig = { defaults: true, // load '.env.defaults' as the default values if empty. }), new MiniCssExtractPlugin({ - filename: NODE_ENV === 'development' ? '[name].css' : '[name].[contenthash]-xyz.css', - chunkFilename: NODE_ENV === 'development' ? '[name].css' : '[name].[contenthash]-xyz.css', + filename: NODE_ENV === 'development' ? '[name].css' : '[name].[contenthash]-1009.css', + chunkFilename: NODE_ENV === 'development' ? '[name].css' : '[name].[contenthash]-1009.css', }), ...optInPlugins, ],