Update gulpfile

This commit is contained in:
Ken-Håvard Lieng 2020-05-08 04:16:23 +02:00
parent 08ffc79a65
commit 1773fef8ef

View File

@ -1,6 +1,4 @@
var path = require('path');
var exec = require('child_process').exec;
var url = require('url');
var gulp = require('gulp');
var gutil = require('gulp-util');
@ -41,7 +39,9 @@ function js(cb) {
process.env['NODE_ENV'] = 'production';
compiler.run(function (err, stats) {
if (err) throw new gutil.PluginError('webpack', err);
if (err) {
throw new gutil.PluginError('webpack', err);
}
gutil.log(
'[webpack]',
@ -50,7 +50,9 @@ function js(cb) {
})
);
if (stats.hasErrors()) process.exit(1);
if (stats.hasErrors()) {
process.exit(1);
}
cb();
});