aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-02-20 11:39:06 -0500
committerAjay Ramachandran <[email protected]>2020-02-20 11:39:06 -0500
commit514a8b62d6539713e62f59e9a6844b168e105771 (patch)
tree64530b3cf0ec29a3e0000ca5f483f4bcc8574489 /webpack
parent8be3cb157a1c62ab6495b98d1f26337e32e5b5e7 (diff)
downloadSponsorBlock-514a8b62d6539713e62f59e9a6844b168e105771.tar.gz
SponsorBlock-514a8b62d6539713e62f59e9a6844b168e105771.zip
Added beta build to CI
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.common.js3
-rw-r--r--webpack/webpack.manifest.js8
2 files changed, 10 insertions, 1 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index 162c8b50..99dbac35 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -42,7 +42,8 @@ module.exports = env => ({
),
new BuildManifest({
browser: env.browser,
- pretty: env.mode === "production"
+ pretty: env.mode === "production",
+ stream: env.stream
})
]
});
diff --git a/webpack/webpack.manifest.js b/webpack/webpack.manifest.js
index eb66b999..7f8e1f3b 100644
--- a/webpack/webpack.manifest.js
+++ b/webpack/webpack.manifest.js
@@ -8,6 +8,7 @@ const fs = require('fs');
const manifest = require("../manifest/manifest.json");
const firefoxManifestExtra = require("../manifest/firefox-manifest-extra.json");
const chromeManifestExtra = require("../manifest/chrome-manifest-extra.json");
+const betaManifestExtra = require("../manifest/beta-manifest-extra.json");
// schema for options object
const schema = {
@@ -18,6 +19,9 @@ const schema = {
},
pretty: {
type: 'boolean'
+ },
+ steam: {
+ type: 'string'
}
}
};
@@ -40,6 +44,10 @@ class BuildManifest {
mergeObjects(manifest, chromeManifestExtra);
}
+ if (this.options.stream === "beta") {
+ mergeObjects(manifest, betaManifestExtra);
+ }
+
let result = JSON.stringify(manifest);
if (this.options.pretty) result = JSON.stringify(manifest, null, 2);