From 38c00dd918fa97ac137410a5669e05a43e80c134 Mon Sep 17 00:00:00 2001 From: Juan David Nicholls Cardona Date: Thu, 4 Jan 2018 14:49:22 -0500 Subject: [PATCH] Add regex for Webpack ContextReplacementPlugin --- config/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/webpack.config.js b/config/webpack.config.js index 80520bde..9fd5ef3c 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -91,6 +91,11 @@ var devConfig = { }, plugins: [ + new webpack.ContextReplacementPlugin( + /(ionic-angular)|(angular(\\|\/)core(\\|\/)@angular)/, + root('./src'), // location of your src + {} // a map of your routes + ), ionicWebpackFactory.getIonicEnvironmentPlugin(), ionicWebpackFactory.getCommonChunksPlugin() ],