fix(http): asset inlining matcher was too general

This commit is contained in:
cha0s 2022-03-02 06:27:25 -06:00
parent a3703ede2e
commit f5d41034cf

View File

@ -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$/]]);
};