mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(webpack): loaders in extend config is broken (#5292)
This commit is contained in:
parent
ef41e205e6
commit
0eb5ed9763
@ -442,7 +442,7 @@ export default class WebpackBaseConfig {
|
||||
}
|
||||
|
||||
// Clone deep avoid leaking config between Client and Server
|
||||
const extendedConfig = this.extendConfig(cloneDeep(config))
|
||||
const extendedConfig = cloneDeep(this.extendConfig(config))
|
||||
const { optimization } = extendedConfig
|
||||
// Todo remove in nuxt 3 in favor of devtool config property or https://webpack.js.org/plugins/source-map-dev-tool-plugin
|
||||
if (optimization && optimization.minimizer && extendedConfig.devtool) {
|
||||
|
@ -93,7 +93,7 @@ describe('basic dev', () => {
|
||||
)
|
||||
const { cssModules, vue } = loadersOptions
|
||||
expect(cssModules.localIdentName).toBe('[hash:base64:6]')
|
||||
expect(vueLoader.options).toEqual(vue)
|
||||
expect(vueLoader.options).toBe(vue)
|
||||
})
|
||||
|
||||
test('Config: preset-env and cssnano are at then end of postcss plugins', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user