Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

Commit d7ac315

Browse files
author
Felix Gladisch
committed
🔧 fix: removed aot plugin from webpack common config
1 parent 310af03 commit d7ac315

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/webpack.common.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require('webpack')
2-
const { AotPlugin } = require('@ngtools/webpack')
32
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin')
43
const ExtractTextPlugin = require('extract-text-webpack-plugin')
54
const CopyWebpackPlugin = require('copy-webpack-plugin')
@@ -70,10 +69,6 @@ module.exports = () => {
7069
},
7170

7271
plugins: [
73-
new AotPlugin({
74-
tsConfigPath: helpers.root('tsconfig-aot.json'),
75-
entryModule: helpers.root('src', 'app', 'app.module#AppModule')
76-
}),
7772
// File name for the extracted styles
7873
new ExtractTextPlugin(`[name]${isProd ? '.[hash]' : ''}.css`),
7974
// Identifies common modules and puts them into a commons chunk

config/webpack.prod.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const webpack = require('webpack')
22
const webpackMerge = require('webpack-merge')
33
const CompressionPlugin = require('compression-webpack-plugin');
44
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')
5+
const { AotPlugin } = require('@ngtools/webpack')
56
const commonConfig = require('./webpack.common.js')
67
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
78
const helpers = require('./helpers')
@@ -17,6 +18,10 @@ module.exports = webpackMerge(commonConfig(), {
1718
},
1819

1920
plugins: [
21+
new AotPlugin({
22+
tsConfigPath: helpers.root('tsconfig-aot.json'),
23+
entryModule: helpers.root('src', 'app', 'app.module#AppModule')
24+
}),
2025
new LoaderOptionsPlugin({
2126
minimize: true,
2227
debug: false,

0 commit comments

Comments
 (0)