aboutsummaryrefslogtreecommitdiffstats
path: root/web/gulpfile.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-14 02:42:36 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-14 02:42:36 +0200
commite9966428bdf09ed0e3ea82dae1b430789cb2e29c (patch)
tree11dc10e2e982e3eb56304ebe46888018bfe10ce5 /web/gulpfile.js
parentff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1 (diff)
downloadmitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.tar.gz
mitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.tar.bz2
mitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.zip
include jshint-stylish dependency
Diffstat (limited to 'web/gulpfile.js')
-rw-r--r--web/gulpfile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/gulpfile.js b/web/gulpfile.js
index 9ec2a0a7..bae4955b 100644
--- a/web/gulpfile.js
+++ b/web/gulpfile.js
@@ -52,7 +52,7 @@ gulp.task("fonts", function () {
function styles(files, dev) {
return (gulp.src(files, {base: "src", cwd: "src"})
- .pipe(dont_break_on_errors())
+ .pipe(dev ? dont_break_on_errors() : gutil.noop())
.pipe(dev ? sourcemaps.init() : gutil.noop())
.pipe(less())
.pipe(dev ? sourcemaps.write(".", {sourceRoot: "/static"}) : gutil.noop())
@@ -71,7 +71,7 @@ gulp.task("styles-prod", ["styles-app-prod", "styles-vendor-prod"]);
function scripts(files, filename, dev) {
return gulp.src(files, {base: "src", cwd: "src"})
- .pipe(dont_break_on_errors())
+ .pipe(dev ? dont_break_on_errors(): gutil.noop())
.pipe(dev ? sourcemaps.init() : gutil.noop())
.pipe(react({harmony: true}))
.pipe(concat(filename))