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() ],