fix(@angular/cli): license plugin config

This commit is contained in:
Clemens Himmer 2018-01-03 16:40:57 +01:00 committed by Filipe Silva
parent d53f45896b
commit 1c78ff1d2f

View File

@ -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;