Skip to content

Commit cabf589

Browse files
fix(webpack): remove AoTPlugin for AngularCompilerPlugin
closes TrilonIO#453
1 parent 9da82aa commit cabf589

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = (env) => {
6060
// new BundleAnalyzerPlugin(),
6161
// Plugins that apply in production builds only
6262
new webpack.optimize.UglifyJsPlugin(),
63-
new AotPlugin({
63+
new AngularCompilerPlugin({
6464
tsConfigPath: './tsconfig.json',
6565
entryModule: path.join(__dirname, 'ClientApp/app/app.module.browser#AppModule'),
6666
exclude: ['./**/*.server.ts']
@@ -107,10 +107,9 @@ module.exports = (env) => {
107107
}),
108108
// Plugins that apply in production builds only
109109
new AngularCompilerPlugin({
110-
mainPath: path.join(__dirname, 'ClientApp/boot.server.PRODUCTION.ts'),
111-
tsConfigPath: './tsconfig.json',
112-
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
113-
exclude: ['./**/*.browser.ts']
110+
tsConfigPath: './tsconfig.json',
111+
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
112+
exclude: ['./**/*.browser.ts']
114113
})
115114
]),
116115
output: {

0 commit comments

Comments
 (0)