We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d53f458 commit 1c78ff1Copy full SHA for 1c78ff1
packages/@angular/cli/tasks/eject.ts
@@ -155,7 +155,7 @@ class JsonWebpackSerializer {
155
}
156
157
private _licenseWebpackPlugin(plugin: any) {
158
- return plugin.options;
+ return this._licenseReplacer(plugin.options);
159
160
161
private _uglifyjsPlugin(plugin: any) {
@@ -395,6 +395,13 @@ class JsonWebpackSerializer {
395
});
396
397
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
+
405
private _replacer(_key: string, value: any) {
406
if (value === undefined) {
407
return value;
0 commit comments