Skip to content

Commit

Permalink
unversioned filenames for app/runtime bootloader bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed May 20, 2021
1 parent 727bbfe commit cef276d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit cef276d

Please sign in to comment.