diff options
author | Determinant <[email protected]> | 2019-02-01 16:05:33 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2019-02-01 16:05:33 -0500 |
commit | 8b24b7bf2409549a5714fac32d52efb05d7d6621 (patch) | |
tree | debf31cd62019193e3b6396011a6c6589532dbc4 /scripts | |
parent | ec404a971bca523dde755687bad7999f55af1c65 (diff) |
maintain data store in background
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build.js | 10 |
1 files changed, 10 insertions, 0 deletions
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")); |