bundlebee

Create bundles with a simple interface independant of the bundler

Usage no npm install needed!

<script type="module">
  import bundlebee from 'https://cdn.skypack.dev/bundlebee';
</script>

README

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);
});