diff --git a/src/license-plugin.js b/src/license-plugin.js index 4523b875..acd22d27 100644 --- a/src/license-plugin.js +++ b/src/license-plugin.js @@ -204,8 +204,7 @@ class LicensePlugin { .trim() .value(); - const file = this._options.thirdParty.output; - fs.writeFileSync(file, text); + fs.writeFileSync(output, text); } } }