File tree Expand file tree Collapse file tree
packages/@angular/cli/models/webpack-configs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 135135 "express" : " ^4.14.0" ,
136136 "jasmine" : " ^2.4.1" ,
137137 "jasmine-spec-reporter" : " ^3.2.0" ,
138+ "license-webpack-plugin" : " ^0.4.2" ,
138139 "minimist" : " ^1.2.0" ,
139140 "mocha" : " ^3.2.0" ,
140141 "mock-fs" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const autoprefixer = require('autoprefixer');
1010const ProgressPlugin = require ( 'webpack/lib/ProgressPlugin' ) ;
1111const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
1212const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
13+ const LicenseWebpackPlugin = require ( 'license-webpack-plugin' ) ;
1314
1415/**
1516 * Enumerate loaders and their dependencies from this file to let the dependency validator
@@ -121,6 +122,9 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
121122 excludeChunks : lazyChunks ,
122123 xhtml : true
123124 } ) ,
125+ new LicenseWebpackPlugin ( {
126+ pattern : / ^ ( M I T | I S C | B S D .* ) $ /
127+ } ) ,
124128 new BaseHrefWebpackPlugin ( {
125129 baseHref : buildOptions . baseHref
126130 } ) ,
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
7474 new webpack . optimize . UglifyJsPlugin ( < any > {
7575 mangle : { screw_ie8 : true } ,
7676 compress : { screw_ie8 : true , warnings : buildOptions . verbose } ,
77- sourceMap : buildOptions . sourcemap
77+ sourceMap : buildOptions . sourcemap ,
78+ comments : false
7879 } ) ,
7980 new CompressionPlugin ( {
8081 asset : '[path].gz[query]' ,
You can’t perform that action at this time.
0 commit comments