feat(webpack): add webpack:config hook (#6350)

This commit is contained in:
Xin Du (Clark) 2019-09-03 20:32:49 +01:00 committed by Pooya Parsa
parent f1edd8220b
commit f6ca2c77ed

View File

@ -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) {