mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
feat(webpack): add webpack:config
hook (#6350)
This commit is contained in:
parent
f1edd8220b
commit
f6ca2c77ed
@ -57,6 +57,8 @@ export class WebpackBundler {
|
||||
webpackConfigs.push(this.getWebpackConfig('Server'))
|
||||
}
|
||||
|
||||
await this.buildContext.nuxt.callHook('webpack:config', webpackConfigs)
|
||||
|
||||
// Check styleResource existence
|
||||
const { styleResources } = this.buildContext.options.build
|
||||
if (styleResources && Object.keys(styleResources).length) {
|
||||
|
Loading…
Reference in New Issue
Block a user