refactor: asset matcher

This commit is contained in:
cha0s 2022-03-03 00:31:25 -06:00
parent 8f5ce8f9d4
commit 6a05ee53f5

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, [/^assets\/index[^.]*\.js$/]]);
.use(InlineChunkHtmlPlugin, [HtmlWebpackPlugin, [/^assets\/index(\.[^.]*)?\.js$/]]);
};