refactor: asset matcher
This commit is contained in:
parent
8f5ce8f9d4
commit
6a05ee53f5
|
@ -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$/]]);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user