diff options
author | Ajay Ramachandran <[email protected]> | 2020-02-04 01:48:32 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-02-04 01:48:32 -0500 |
commit | 2df2b4c53dc15684178bc9322909304a22dba6ac (patch) | |
tree | 18106604dd264b23a402cc3eb5e55fbba3d52806 /webpack/webpack.manifest.js | |
parent | 0cbe73c527c9a4c47d44c52dd2dddf42f8bdc52f (diff) | |
download | SponsorBlock-2df2b4c53dc15684178bc9322909304a22dba6ac.tar.gz SponsorBlock-2df2b4c53dc15684178bc9322909304a22dba6ac.zip |
Mkdir with directory
Diffstat (limited to 'webpack/webpack.manifest.js')
-rw-r--r-- | webpack/webpack.manifest.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webpack/webpack.manifest.js b/webpack/webpack.manifest.js index a7022bc3..eb66b999 100644 --- a/webpack/webpack.manifest.js +++ b/webpack/webpack.manifest.js @@ -30,7 +30,8 @@ class BuildManifest { } apply(compiler) { - const distManifestFile = path.resolve(__dirname, "../dist/manifest.json"); + const distFolder = path.resolve(__dirname, "../dist/"); + const distManifestFile = path.resolve(distFolder, "manifest.json"); // Add missing manifest elements if (this.options.browser.toLowerCase() === "firefox") { @@ -42,7 +43,7 @@ class BuildManifest { let result = JSON.stringify(manifest); if (this.options.pretty) result = JSON.stringify(manifest, null, 2); - fs.mkdirSync(distManifestFile, {recursive: true}); + fs.mkdirSync(distFolder, {recursive: true}); fs.writeFileSync(distManifestFile, result); } } |