Skip to content

Commit

Permalink
fix(webpack): remove AoTPlugin for AngularCompilerPlugin
Browse files Browse the repository at this point in the history
closes #453
  • Loading branch information
MarkPieszak committed Nov 3, 2017
1 parent 6954ccb commit 0ab9dbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const AotPlugin = require('@ngtools/webpack').AotPlugin;
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

Expand Down Expand Up @@ -60,7 +60,7 @@ module.exports = (env) => {
// new BundleAnalyzerPlugin(),
// Plugins that apply in production builds only
new webpack.optimize.UglifyJsPlugin(),
new AotPlugin({
new AngularCompilerPlugin({
tsConfigPath: './tsconfig.json',
entryModule: path.join(__dirname, 'ClientApp/app/app.module.browser#AppModule'),
exclude: ['./**/*.server.ts']
Expand Down Expand Up @@ -101,7 +101,7 @@ module.exports = (env) => {
mangle: false
}),
// Plugins that apply in production builds only
new AotPlugin({
new AngularCompilerPlugin({
tsConfigPath: './tsconfig.json',
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
exclude: ['./**/*.browser.ts']
Expand Down

0 comments on commit 0ab9dbf

Please sign in to comment.