var gulp = require('gulp');
var webpack = require('webpack');

var clientConfig = require('./config/webpack.prod.client.js')
var serverConfig = require('./config/webpack.prod.server.js')


gulp.task('bundle-client', function(done) {
    webpack( clientConfig ).run(onBundle(done))
});

gulp.task('bundle-server', function(done) {
    webpack( serverConfig ).run(onBundle(done))
});

gulp.task('bundle', ['bundle-client', 'bundle-server']);


function onBundle(done) {
    return function(err, stats) {
        if (err) console.log('Error', err);
        else console.log(stats.toString());
        done()
    }
}

@@ -368,32 +368,128 @@
 dle(done))%0A%7D);%0A%0A
+gulp.task('copy-html', function() %7B%0A%09gulp.src('./src/index.html').pipe(gulp.dest('./app'))%0A%7D);%0A%0A
 gulp.task('bundl
@@ -525,16 +525,29 @@
 -server'
+, 'copy-html'
 %5D);%0A%0A%0Afu

Add copy-html task