UNPKG

378 BJavaScriptView Raw
1const gulp = require('gulp');
2const gutil = require('gulp-util');
3const webpack = require('webpack');
4const webpackConf = require('../webpack.config');
5
6gulp.task('pack', [/* 'eslint' */], () => {
7 webpack(webpackConf, (err, stats) => {
8 if (err) throw new gutil.PluginError('webpack', err);
9 gutil.log('[webpack]', stats.toString({
10 colors: true
11 }));
12 });
13});