Open cordovapolymer opened 7 years ago
build.js
var browserify = require('browserify'); var b = browserify(['./a', './b']); var output = './src'; b.plugin('partition-bundle', { map: './bundle.json', output: output, main: './a' }); b.bundle();
bundle.json
{ "./a.js": ["./a"], "./b.js": ["./b"] }
example npm build script: https://gist.github.com/kristoferjoseph/921160c70967e31dbcf45b4642e73b69
npm
build.js
bundle.json