From e4ec2e11eeaec103e3051b8ed2feb4a4d4d4ffab Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 10 Dec 2019 01:28:42 +0530 Subject: [PATCH] fix: Optional configureWebpack --- webpack/config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webpack/config.js b/webpack/config.js index e2edb958..7f848af3 100644 --- a/webpack/config.js +++ b/webpack/config.js @@ -167,9 +167,11 @@ function makeConfig() { } }; - let modifiedConfig = appConfig.configureWebpack(config); - if (modifiedConfig) { - return modifiedConfig; + if (appConfig.configureWebpack) { + let modifiedConfig = appConfig.configureWebpack(config); + if (modifiedConfig) { + return modifiedConfig; + } } return config;