Skip to content

Commit 0ab9dbf

Browse files
committed
fix(webpack): remove AoTPlugin for AngularCompilerPlugin
closes #453
1 parent 6954ccb commit 0ab9dbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webpack.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
const path = require('path');
1212
const webpack = require('webpack');
1313
const merge = require('webpack-merge');
14-
const AotPlugin = require('@ngtools/webpack').AotPlugin;
14+
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
1515
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
1616
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
1717

@@ -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']
@@ -101,7 +101,7 @@ module.exports = (env) => {
101101
mangle: false
102102
}),
103103
// Plugins that apply in production builds only
104-
new AotPlugin({
104+
new AngularCompilerPlugin({
105105
tsConfigPath: './tsconfig.json',
106106
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
107107
exclude: ['./**/*.browser.ts']

0 commit comments

Comments
 (0)