1 | const gulp = require('gulp');
|
2 | const gutil = require('gulp-util');
|
3 | const webpack = require('webpack');
|
4 | const webpackConf = require('../webpack.config');
|
5 |
|
6 | gulp.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 | });
|