build: add node 4 specific script for building browser js

This commit is contained in:
bordun 2016-11-28 11:54:35 +01:00
parent 9684d1ba29
commit e29ce249f8
2 changed files with 14 additions and 1 deletions

12
scripts/build-js.node4.js Normal file
View file

@ -0,0 +1,12 @@
// browserify without syntax checking for building browser-js with node 4
var browserify = require('browserify'),
path = require('path')
var b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'));
// bypass syntax-error check
b.pipeline.get('syntax').splice(0, 1);
b.bundle().pipe(process.stdout);