'use strict';

var gulp = require('gulp');
var webpack = require('webpack');
var gutil = require('gulp-util');

gulp.task('bundle:dev', function (done) {
    webpack(require('./webpack.config'), function (err, stats) {
        if (err) throw new gutil.PluginError('webpack:build', err);
        gutil.log('[bundle:dev]', stats.toString({
            colors: true
        }));
        done();
    });
});

gulp.task('default', ['bundle:dev'], function () {
});

@@ -467,12 +467,354 @@
  () %7B%0D%0A%7D);%0D%0A
+%0D%0Agulp.task('watch', function () %7B%0D%0A    webpack(require('./webpack.config')).watch(%7B%0D%0A        aggregateTimeout: 300 // wait so long for more changes%0D%0A    %7D, function (err, stats) %7B%0D%0A        if (err) throw new gutil.PluginError('watch', err);%0D%0A        gutil.log('%5Bwatch%5D', stats.toString(%7B%0D%0A            colors: true%0D%0A        %7D));%0D%0A    %7D);%0D%0A%7D);

add watch functionality