*: update deps, transpile client scripts to es5, minify client scripts, use pre-minified module where possible
This commit is contained in:
parent
32646953c6
commit
6c999f7811
7 changed files with 30 additions and 19 deletions
|
|
@ -1,15 +1,14 @@
|
|||
var browserify = require('browserify'),
|
||||
exorcist = require('exorcist'),
|
||||
path = require('path')
|
||||
path = require('path'),
|
||||
babelify = require('babelify')
|
||||
|
||||
|
||||
var b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'),{debug:true});
|
||||
|
||||
// bypass syntax-error check if node version is < 6
|
||||
if (parseInt(process.version.split('.')[0].replace('v',''))<6) {
|
||||
b.pipeline.get('syntax').splice(0, 1);
|
||||
}
|
||||
var b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'), {debug:true});
|
||||
|
||||
b.bundle()
|
||||
b.transform(babelify, {presets: ["es2015"]})
|
||||
.transform('uglifyify')
|
||||
.bundle()
|
||||
.pipe(exorcist(path.resolve(__dirname + '/../app/browser/scripts.js.map')))
|
||||
.pipe(process.stdout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue