0.1.0 • Published 8 years ago

bundlebee v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

bundlebee

Experiment to provide a unified API for bundlers and allow to just drop in bundlers

bundlebee(entry => {
  return entry('./main.js')
    .include(['src/**/*.js'], 'babel'
    .include(['styles/**/*.less'], 'less', 'cssModules']);
}).then(bundle => {
  bundle('webpack').write('dist/myBundle.js');
  // Or if you want just the config:
  // bundle('webpack').generateConfig('webpack.config.js');
}).catch(err => {
  console.log('Oh noes, something went wrong.');
  console.log(err);
});