-
Notifications
You must be signed in to change notification settings - Fork 513
Error: Path variable [contenthash] not implemented in this context: style/[name].[contenthash].css #763
Comments
This appears to be a conflict with webpack 4.3 which introduced a |
I just upgraded to Webpack 4.3 and got the same error. I hope this gets fixed, but for the moment I changed |
Please use https://github.com/webpack-contrib/mini-css-extract-plugin for extract css for |
@evilebottnawi Thanks. I will give it a try once it supports HMR |
@evilebottnawi does it mean that extract-text-webpack-plugin is deprecated at least for css? |
@Bessonov yes, future |
A temporary solution that you can use until it's fixed, is to replace |
If you're getting this with
|
I still have this error. I ran |
@esausilva You can check |
the variable has some conflict with the latest version of webpack webpack-contrib/extract-text-webpack-plugin#763
thanks,resolved |
Why would you use You dont need HMR in production so switching to https://github.com/webpack-contrib/mini-css-extract-plugin is okay |
When the only changes are HTML or CSS the hash was not updated. This commit should fix the issue. For why hash is used instead of contenthash, see webpack-contrib/extract-text-webpack-plugin#763 (comment).
When the only changes are HTML or CSS the hash was not updated. This commit should fix the issue. For why hash is used instead of contenthash, see webpack-contrib/extract-text-webpack-plugin#763 (comment).
I get the following error after webpack upgrade (4.3.0)
Error: Path variable [contenthash] not implemented in this context: style/[name].[contenthash].css
My plugin config is
extract-text-webpack-plugin's version is 4.0.0-beta.0.
Its working good with webpack 4.1.0 though.
The text was updated successfully, but these errors were encountered: