blob: f1ae631fc6787920e67459c68dc8951b774b1a69 (
plain) (
tree)
|
|
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"));
|