mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
chore(deps): update dependency extract-css-chunks-webpack-plugin to v4 (#5160)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
This commit is contained in:
parent
083ac57514
commit
840ccb4bdf
@ -21,7 +21,7 @@
|
|||||||
"css-loader": "^2.1.0",
|
"css-loader": "^2.1.0",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eventsource-polyfill": "^0.9.6",
|
"eventsource-polyfill": "^0.9.6",
|
||||||
"extract-css-chunks-webpack-plugin": "^3.3.3",
|
"extract-css-chunks-webpack-plugin": "^4.0.0",
|
||||||
"file-loader": "^3.0.1",
|
"file-loader": "^3.0.1",
|
||||||
"fs-extra": "^7.0.1",
|
"fs-extra": "^7.0.1",
|
||||||
"glob": "^7.1.3",
|
"glob": "^7.1.3",
|
||||||
|
@ -347,9 +347,7 @@ export default class WebpackBaseConfig {
|
|||||||
if (buildOptions.extractCSS) {
|
if (buildOptions.extractCSS) {
|
||||||
plugins.push(new ExtractCssChunksPlugin(Object.assign({
|
plugins.push(new ExtractCssChunksPlugin(Object.assign({
|
||||||
filename: this.getFileName('css'),
|
filename: this.getFileName('css'),
|
||||||
chunkFilename: this.getFileName('css'),
|
chunkFilename: this.getFileName('css')
|
||||||
// TODO: https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/issues/132
|
|
||||||
reloadAll: true
|
|
||||||
}, buildOptions.extractCSS)))
|
}, buildOptions.extractCSS)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,13 @@ export default class StyleLoader {
|
|||||||
|
|
||||||
extract() {
|
extract() {
|
||||||
if (this.extractCSS) {
|
if (this.extractCSS) {
|
||||||
return ExtractCssChunksPlugin.loader
|
return {
|
||||||
|
loader: ExtractCssChunksPlugin.loader,
|
||||||
|
options: {
|
||||||
|
// TODO: https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/issues/132
|
||||||
|
reloadAll: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -4575,14 +4575,14 @@ extglob@^2.0.4:
|
|||||||
snapdragon "^0.8.1"
|
snapdragon "^0.8.1"
|
||||||
to-regex "^3.0.1"
|
to-regex "^3.0.1"
|
||||||
|
|
||||||
extract-css-chunks-webpack-plugin@^3.3.3:
|
extract-css-chunks-webpack-plugin@^4.0.0:
|
||||||
version "3.3.3"
|
version "4.0.0"
|
||||||
resolved "https://registry.npmjs.org/extract-css-chunks-webpack-plugin/-/extract-css-chunks-webpack-plugin-3.3.3.tgz#d550be32b93dad5d290e9d979d37dd317bdaec9b"
|
resolved "https://registry.npmjs.org/extract-css-chunks-webpack-plugin/-/extract-css-chunks-webpack-plugin-4.0.0.tgz#8a7dcbfa7ae7f399571a4246813d846062b0ed09"
|
||||||
integrity sha512-4DYo3jna9ov81rdKtE1U2cirb3ERoWhHldzRxZWx3Q5i5Dm6U+mmfon7PmaKDuh6+xySVOqtlXrZyJY2V4tc+g==
|
integrity sha512-6wddkm9BJtFshHTA/vv7SKzXdyTXnyRxSceoeGDHdTngNoYARDtLcQfJL8gz6WBOtwvYsTEc+AuEgWEb/VaKCw==
|
||||||
dependencies:
|
dependencies:
|
||||||
loader-utils "^1.1.0"
|
loader-utils "^1.1.0"
|
||||||
lodash "^4.17.11"
|
lodash "^4.17.11"
|
||||||
normalize-url "^3.3.0"
|
normalize-url "^3.0.0"
|
||||||
schema-utils "^1.0.0"
|
schema-utils "^1.0.0"
|
||||||
webpack-sources "^1.1.0"
|
webpack-sources "^1.1.0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user