You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
I get the following error after webpack upgrade (4.3.0) Error: Path variable [contenthash] not implemented in this context: style/[name].[contenthash].css
I just upgraded to Webpack 4.3 and got the same error. I hope this gets fixed, but for the moment I changed [contenthash] to [hash] to get it working again.
strahinjaajvaz, aquilesb, steffanhalv, james-prado, summerangel and 27 more
@Bessonov yes, future ETWP is only extracted content without features like ordering, code splitting, tree shaking, purifying or other specific action for each type of assets (i.e. css/html/etc). Just extract. Thanks!
I just upgraded to Webpack 4.3 and got the same error. I hope this gets fixed, but for the moment I changed [contenthash] to [hash] to get it working again.
Error: Path variable [contenthash] not implemented in this context: style/[name].[contenthash].css · Issue #763 · webpack-contrib/extract-text-webpack-plugin
Activity
Alorel commentedon Mar 27, 2018
This appears to be a conflict with webpack 4.3 which introduced a
[contenthash]
variable of its own: https://github.com/webpack/webpack/releases/tag/v4.3.0esausilva commentedon Mar 27, 2018
I just upgraded to Webpack 4.3 and got the same error. I hope this gets fixed, but for the moment I changed
[contenthash]
to[hash]
to get it working again.alexander-akait commentedon Mar 27, 2018
Please use https://github.com/webpack-contrib/mini-css-extract-plugin for extract css for
webpack@4
esausilva commentedon Mar 27, 2018
@evilebottnawi Thanks. I will give it a try once it supports HMR
Bessonov commentedon Mar 28, 2018
@evilebottnawi does it mean that extract-text-webpack-plugin is deprecated at least for css?
alexander-akait commentedon Mar 28, 2018
@Bessonov yes, future
ETWP
is only extracted content without features likeordering
,code splitting
,tree shaking
,purifying
or other specific action for each type of assets (i.e.css
/html
/etc). Just extract. Thanks!georgemincof commentedon Apr 2, 2018
A temporary solution that you can use until it's fixed, is to replace
[contenthash]
with something like[md5:contenthash:hex:20]
.catamphetamine commentedon Apr 4, 2018
If you're getting this with
mini-css-extract-plugin
then update it and the error disappears:webpack-contrib/mini-css-extract-plugin#63
https://github.com/webpack-contrib/extract-text-webpack-plugin/issues…
fix: fix building failing due to contenthash error
fix: fix building failing due to contenthash error
4 remaining items
contenthash
variable jantimon/html-webpack-plugin#1033DavOnGit commentedon Sep 2, 2018
@esausilva You can check
extract-css-chunks-webpack-plugin
it supports HMR!fix error from webpack webpack-contrib/extract-text-webpack-plugin#763
Update index.js
xinchanghao commentedon Feb 27, 2019
thanks,resolved
prog1dev commentedon Feb 28, 2019
Why would you use
extract-text-webpack-plugin
in development?You dont need HMR in production so switching to https://github.com/webpack-contrib/mini-css-extract-plugin is okay
Fix CSS caching issue
Fix CSS caching issue
extract-text-webpack-plugin
构建报错 alibaba/beidou#159quasar build -m pwa
failing with latest version quasarframework/quasar#5987