text: import webpack from 'webpack';
  import task from './lib/task';
  import webpackConfig from './webpack.config';
  
  export default task(function bundle() {
    return new Promise((resolve, reject) => {
      const bundler = webpack(webpackConfig);
      const run = (err, stats) => {
        if (err) {
          reject(err);
        } else {
          console.log(stats.toString(webpackConfig[0].stats));
          resolve();
        }
      };
      bundler.run(run);
    });
  });
  