Unverified Commit 41195b69 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Fix Legacy CSS with Granular Chunks (#10101)

parent fff897d7
...@@ -334,7 +334,14 @@ export default async function getBaseWebpackConfig( ...@@ -334,7 +334,14 @@ export default async function getBaseWebpackConfig(
updateHash: (hash: crypto.Hash) => void updateHash: (hash: crypto.Hash) => void
}): string { }): string {
const hash = crypto.createHash('sha1') const hash = crypto.createHash('sha1')
if (module.type === `css/mini-extract`) { if (
// mini-css-extract-plugin
module.type === `css/mini-extract` ||
// extract-css-chunks-webpack-plugin (old)
module.type === `css/extract-chunks` ||
// extract-css-chunks-webpack-plugin (new)
module.type === `css/extract-css-chunks`
) {
module.updateHash(hash) module.updateHash(hash)
} else { } else {
if (!module.libIdent) { if (!module.libIdent) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment