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 ++++++++++++ scripts/build.js | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 s/build.js delete mode 100644 scripts/build.js 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")); diff --git a/scripts/build.js b/scripts/build.js deleted file mode 100644 index f1ae631..0000000 --- a/scripts/build.js +++ /dev/null @@ -1,12 +0,0 @@ -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