diff options
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")); |