This repository was archived by the owner on Jun 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11const webpack = require ( 'webpack' )
2- const { AotPlugin } = require ( '@ngtools/webpack' )
32const ContextReplacementPlugin = require ( 'webpack/lib/ContextReplacementPlugin' )
43const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
54const 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
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const webpack = require('webpack')
22const webpackMerge = require ( 'webpack-merge' )
33const CompressionPlugin = require ( 'compression-webpack-plugin' ) ;
44const UglifyJsPlugin = require ( 'webpack/lib/optimize/UglifyJsPlugin' )
5+ const { AotPlugin } = require ( '@ngtools/webpack' )
56const commonConfig = require ( './webpack.common.js' )
67const LoaderOptionsPlugin = require ( 'webpack/lib/LoaderOptionsPlugin' ) ;
78const 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 ,
You can’t perform that action at this time.
0 commit comments