Skip to content

Commit da0348f

Browse files
tarekisclydin
authored andcommitted
fix(@angular/cli): license plugin config
1 parent cfc6fb6 commit da0348f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
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) {
@@ -394,6 +394,13 @@ class JsonWebpackSerializer {
394394
});
395395
}
396396

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

0 commit comments

Comments
 (0)