package: add a license header to js bundle, fix license field in package.json
This commit is contained in:
parent
f55bb13fbb
commit
669f1c078f
3 changed files with 37 additions and 15 deletions
|
|
@ -1,4 +1,5 @@
|
|||
var browserify = require('browserify'),
|
||||
licensify = require('licensify'),
|
||||
exorcist = require('exorcist'),
|
||||
path = require('path'),
|
||||
babelify = require('babelify'),
|
||||
|
|
@ -11,6 +12,8 @@ if (prod) console.warn('\x1b[36m%s\x1b[0m', 'Building minified js bundle for pro
|
|||
|
||||
b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'), {debug:!fast})
|
||||
|
||||
b.plugin(licensify)
|
||||
|
||||
b = b.transform(babelify, {presets: ["es2015"], plugins: ["transform-object-rest-spread"]})
|
||||
|
||||
if (prod) b = b.transform('uglifyify', {global: true})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue