aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.manifest.js5
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);
}
}