-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(Tracking): remove deduped licenses #4694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
02fca7d
to
7f2b000
Compare
@@ -121,6 +122,9 @@ export function getCommonConfig(wco: WebpackConfigOptions) { | |||
excludeChunks: lazyChunks, | |||
xhtml: true | |||
}), | |||
new LicenseWebpackPlugin({ | |||
pattern: /^(MIT|ISC|BSD.*)$/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't all license types be included?
@@ -74,7 +74,8 @@ export const getProdConfig = function (wco: WebpackConfigOptions) { | |||
new webpack.optimize.UglifyJsPlugin(<any>{ | |||
mangle: { screw_ie8: true }, | |||
compress: { screw_ie8: true, warnings: buildOptions.verbose }, | |||
sourceMap: buildOptions.sourcemap | |||
sourceMap: buildOptions.sourcemap, | |||
comments: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are legal implications to this. Do we need to remove comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified with legal and they said removing the comments from a build output is fine in our case. This LGTM (needs to fix errors on CI)
6e8f98e
to
757f669
Compare
d069c55
to
1c16f12
Compare
@sumitarora can you rebase to see if there are still CI problems? |
1c16f12
to
a7dcb75
Compare
@filipesilva There is issue with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test for this? Otherwise we won't know if it breaks accidentally.
Can this be made optional via a command/config option? |
fd377a7
to
4a34e85
Compare
Any news on this PR ? It looks like xz64/license-webpack-plugin#11 has been solved for a month. What could eventually be made to help ? |
89d3ef6
to
a2bee5c
Compare
a2bee5c
to
2adcbdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nits. Mostly text.
docs/documentation/build.md
Outdated
@@ -77,6 +77,8 @@ Flag | `--dev` | `--prod` | |||
`--sourcemaps` | `true` | `false` | |||
`--extract-css` | `false` | `true` | |||
|
|||
`--extract-licenses` (`-el`) Extract all licenses in a seprate file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: separate
.
type: Boolean, | ||
default: true, | ||
aliases: ['el'], | ||
description: 'Extract all licenses in a seprate file.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: separate
.
{ | ||
name: 'extract-licenses', | ||
type: Boolean, | ||
default: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you specify in the description that this flag is only used in production builds (when --target=prod
)? Seems like people might think it will affect dev builds as well.
@@ -6,7 +6,6 @@ import { WebpackConfigOptions } from '../webpack-config'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you reverse this file please? It just adds to the noise of the history.
name: 'extract-licenses', | ||
type: Boolean, | ||
default: true, | ||
aliases: ['el'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't want a short hand for this option.
2568ebd
to
0ceb419
Compare
0ceb419
to
1a50954
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
3rdpartylicenses.txt
with all the licensesFixes: Tracking: Deduping licenses #4413