mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(webpack): chunkhash
and contenthash
not work with extractCSS
(#6520)
This commit is contained in:
parent
9b1ce93e6a
commit
ed564c3bd8
@ -84,13 +84,14 @@ export default class StyleLoader {
|
||||
|
||||
extract () {
|
||||
if (this.extractCSS) {
|
||||
const isDev = this.buildContext.options.dev
|
||||
return {
|
||||
loader: ExtractCssChunksPlugin.loader,
|
||||
options: {
|
||||
// TODO: https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/issues/132
|
||||
// https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/issues/161#issuecomment-500162574
|
||||
reloadAll: true,
|
||||
hot: true
|
||||
reloadAll: isDev,
|
||||
hot: isDev
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user