Skip to content

Commit cdcefa2

Browse files
committed
refactor the gulp configuration file
1 parent 09ff471 commit cdcefa2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

demo/local-datasource/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ gulp.task('build', ['css', 'js', 'watch']);
8282

8383
gulp.task('webpack', ['build'], function () {
8484
webpack(require('./webpack.config.js'), function(err, stats) {
85-
if (err) throw new gutil.PluginError('webpack', err);
86-
gutil.log('[webpack]', stats.toString());
85+
if (err) {
86+
throw new gutil.PluginError('webpack', err);
87+
}
88+
gutil.log(gutil.colors.green('[webpack]', stats.toString()));
8789
});
8890
});
8991

0 commit comments

Comments
 (0)