From 96b08d7651a7ecddc15bc77ce5c453fbe4e12b12 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 6 Feb 2019 23:34:09 -0500 Subject: ... --- s/build.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 s/build.js (limited to 's') diff --git a/s/build.js b/s/build.js new file mode 100644 index 0000000..f1ae631 --- /dev/null +++ b/s/build.js @@ -0,0 +1,12 @@ +var fs = require("fs"); +var browserify = require("browserify"); +var babelify = require("babelify"); + +browserify({ debug: true }) + .transform(babelify.configure({ + presets: ["@babel/preset-env"], + plugins: ["@babel/plugin-proposal-class-properties"]})) + .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