We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc6fb6 commit da0348fCopy full SHA for da0348f
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) {
@@ -394,6 +394,13 @@ class JsonWebpackSerializer {
394
});
395
396
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
+
404
private _replacer(_key: string, value: any) {
405
if (value === undefined) {
406
return value;
0 commit comments