build: add node 4 specific script for building browser js
This commit is contained in:
parent
9684d1ba29
commit
e29ce249f8
2 changed files with 14 additions and 1 deletions
12
scripts/build-js.node4.js
Normal file
12
scripts/build-js.node4.js
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue