build: support node 4 for building js file (by bypassing syntax checking if node < 6)
This commit is contained in:
parent
e29ce249f8
commit
df9db253af
3 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +0,0 @@
|
|||
// 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