From a0caf1e29266c582ea1a9961942d3604eb3080ad Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Sat, 18 Nov 2017 20:31:02 +0100 Subject: [PATCH] fix/ replace aotPlugin in no prod mode --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a40e6870c..efd751824 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -187,14 +187,14 @@ if(scripts.length > 0){ })); } else { - plugins.push(new AotPlugin({ + plugins.push(new AngularCompilerPlugin({ + entryModule: "src/app/app.module#AppModule", "mainPath": "main.ts", "hostReplacementPaths": { "environments/index.ts": "environments/index.ts" }, "exclude": [], - "tsConfigPath": "src/tsconfig.app.json", - "skipCodeGeneration": true + "tsConfigPath": "src/tsconfig.app.json" })); }