diff options
author | Determinant <[email protected]> | 2019-02-06 23:34:09 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2019-02-06 23:34:09 -0500 |
commit | 96b08d7651a7ecddc15bc77ce5c453fbe4e12b12 (patch) | |
tree | 32182f46c893961b485fe8df1e8418d42f8db4c9 /s/build.js | |
parent | 840b8f32b157c3bf9f0ffa4c300ac44c82dffc1e (diff) |
...
Diffstat (limited to 's/build.js')
-rw-r--r-- | s/build.js | 12 |
1 files changed, 12 insertions, 0 deletions
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")); |