blob: f1ae631fc6787920e67459c68dc8951b774b1a69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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"));
|