From f6ca2c77ed1c5fded4db8eeeed71b84698dbbddc Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Tue, 3 Sep 2019 20:32:49 +0100 Subject: [PATCH] feat(webpack): add `webpack:config` hook (#6350) --- packages/webpack/src/builder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webpack/src/builder.js b/packages/webpack/src/builder.js index a8b81d2e45..8e2f0b8338 100644 --- a/packages/webpack/src/builder.js +++ b/packages/webpack/src/builder.js @@ -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) {