gulp.task('webpack', function() { return gulp.src('app/client/main.js') .pipe(webpackStream(require('./app/client/config/webpack.config'))) .pipe(gulp.dest('dist/')); });
gulp.task('obniz.js', function obnizJsBuild(done) { const webpackConfig = require('../webpack.config.js'); return gulp .src(obnizMain) .pipe(plumber({ errorHandler: reportError })) .pipe(webpackStream(webpackConfig, webpack)) .pipe(rename('obniz.js')) .pipe(gulp.dest(path.join(__dirname, '../../'))) .on('end', function() { console.log('obniz.js compiled!'); done(); }); });