fix(http): asset inlining matcher was too general
This commit is contained in:
parent
a3703ede2e
commit
f5d41034cf
|
@ -19,5 +19,5 @@ module.exports = () => ({config}) => {
|
|||
.chunkFilename(isProduction ? 'assets/[name].[contenthash:8].js' : 'assets/[name].js');
|
||||
config
|
||||
.plugin('inline-chunks')
|
||||
.use(InlineChunkHtmlPlugin, [HtmlWebpackPlugin, [/index.*\.js$/]]);
|
||||
.use(InlineChunkHtmlPlugin, [HtmlWebpackPlugin, [/^assets\/index[^.]*\.js$/]]);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user