From 8b24b7bf2409549a5714fac32d52efb05d7d6621 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 1 Feb 2019 16:05:33 -0500 Subject: maintain data store in background --- scripts/build.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/build.js (limited to 'scripts') diff --git a/scripts/build.js b/scripts/build.js new file mode 100644 index 0000000..75ff636 --- /dev/null +++ b/scripts/build.js @@ -0,0 +1,10 @@ +var fs = require("fs"); +var browserify = require("browserify"); +var babelify = require("babelify"); + +browserify({ debug: true }) + .transform(babelify.configure({ presets: ["@babel/preset-env"] })) + .require("./src/background.js", { entry: true }) + .bundle() + .on("error", function (err) { console.log("Error: " + err.message); }) + .pipe(fs.createWriteStream("./build/background.js")); -- cgit v1.2.3-70-g09d2