Skip to content

Commit 02fca7d

Browse files
committed
fix(Tracking): remove deduped licenses
1 parent 59cbcf4 commit 02fca7d

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
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",

‎packages/@angular/cli/models/webpack-configs/common.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const autoprefixer = require('autoprefixer');
1010
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
1111
const HtmlWebpackPlugin = require('html-webpack-plugin');
1212
const 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: /^(MIT|ISC|BSD.*)$/
127+
}),
124128
new BaseHrefWebpackPlugin({
125129
baseHref: buildOptions.baseHref
126130
}),

‎packages/@angular/cli/models/webpack-configs/production.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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]',

0 commit comments

Comments
 (0)