From 2df2b4c53dc15684178bc9322909304a22dba6ac Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 4 Feb 2020 01:48:32 -0500 Subject: Mkdir with directory --- webpack/webpack.manifest.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webpack/webpack.manifest.js') 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); } } -- cgit v1.2.3