mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
fix(@angular/cli): license plugin config
This commit is contained in:
parent
d53f45896b
commit
1c78ff1d2f
@ -155,7 +155,7 @@ class JsonWebpackSerializer {
|
||||
}
|
||||
|
||||
private _licenseWebpackPlugin(plugin: any) {
|
||||
return plugin.options;
|
||||
return this._licenseReplacer(plugin.options);
|
||||
}
|
||||
|
||||
private _uglifyjsPlugin(plugin: any) {
|
||||
@ -395,6 +395,13 @@ class JsonWebpackSerializer {
|
||||
});
|
||||
}
|
||||
|
||||
private _licenseReplacer(value: any) {
|
||||
return Object.assign({}, value, {
|
||||
outputTemplate: this._relativePath(
|
||||
'process.cwd()', path.relative(this._root, value.outputTemplate))
|
||||
});
|
||||
}
|
||||
|
||||
private _replacer(_key: string, value: any) {
|
||||
if (value === undefined) {
|
||||
return value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user