Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin does not work when using [name] substitution instead of [id] #13

Open
dNitro opened this issue Oct 31, 2019 · 1 comment
Open

Comments

@dNitro
Copy link

dNitro commented Oct 31, 2019

By using the following config for MiniCssExtractPlugin this plugin does not handle the loading of the chunks on module loading or windows resize anymore!

new MiniCssExtractPlugin({
   filename: '[name].[contenthash].css',
   chunkFilename: '[name].[contenthash].css',
})

While by using [id].[contenthash].css as chunkFilename, loading of the chunks based on size just works when their js chunks are dynamically imported but not when they are initially attached to the dom.

@dNitro dNitro changed the title Plugin does not work when usign [name] substitution instead of [id] Plugin does not work when using[name] substitution instead of [id] Oct 31, 2019
@dNitro dNitro changed the title Plugin does not work when using[name] substitution instead of [id] Plugin does not work when using [name] substitution instead of [id] Oct 31, 2019
@mike-diamond
Copy link
Owner

Will fix in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants