Commit e11cf227 authored by Joe Haddad's avatar Joe Haddad Committed by JJ Kasper

Enable New Chunking for CSS (#9688)

* Enable New Chunking for CSS

* set false
parent be56af62
......@@ -99,7 +99,12 @@ function assignDefaults(userConfig: { [key: string]: any }) {
}
})
return { ...defaultConfig, ...userConfig }
const result = { ...defaultConfig, ...userConfig }
if (result.experimental && result.experimental.css) {
// The new CSS support requires granular chunks be enabled.
result.experimental.granularChunks = true
}
return result
}
function normalizeConfig(phase: string, config: any) {
......
......@@ -3,7 +3,11 @@ module.exports = {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60,
},
experimental: { css: true, granularChunks: true },
experimental: {
css: true,
// Intentionally set false to ensure we force to true.
granularChunks: false,
},
webpack(cfg) {
cfg.devtool = 'source-map'
return cfg
......
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