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