From 1773fef8efd4061dae347fdecee56f83fd230948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Fri, 8 May 2020 04:16:23 +0200 Subject: [PATCH] Update gulpfile --- client/gulpfile.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index 82c265c4..397a1c95 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -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(); });