Skip to content

Commit 1c78ff1

Browse files
tarekisfilipesilva
authored andcommitted
fix(@angular/cli): license plugin config
1 parent d53f458 commit 1c78ff1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/@angular/cli/tasks/eject.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class JsonWebpackSerializer {
155155
}
156156

157157
private _licenseWebpackPlugin(plugin: any) {
158-
return plugin.options;
158+
return this._licenseReplacer(plugin.options);
159159
}
160160

161161
private _uglifyjsPlugin(plugin: any) {
@@ -395,6 +395,13 @@ class JsonWebpackSerializer {
395395
});
396396
}
397397

398+
private _licenseReplacer(value: any) {
399+
return Object.assign({}, value, {
400+
outputTemplate: this._relativePath(
401+
'process.cwd()', path.relative(this._root, value.outputTemplate))
402+
});
403+
}
404+
398405
private _replacer(_key: string, value: any) {
399406
if (value === undefined) {
400407
return value;

0 commit comments

Comments
 (0)