From cef276d132e2582c79afe59998a36abeed292259 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Mon, 10 May 2021 15:14:04 -0700 Subject: [PATCH] unversioned filenames for app/runtime bootloader bundles --- webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 5d25e3d834a33b..8efac81956d402 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -386,7 +386,13 @@ let appConfig = { output: { path: distPath, publicPath: '', - filename: '[name].[contenthash].js', + filename: pathData => { + const unversioned = ['runtime', 'app']; + + return unversioned.includes(pathData.chunk.name) + ? '[name].js' + : '[name].[contenthash].js'; + }, chunkFilename: '[name].[contenthash].js', sourceMapFilename: '[name].js.map', },