Permalink
Browse files

fix(stylus): don't stop watch on error

  • Loading branch information...
Alexander-Taran committed Mar 12, 2018
1 parent 15b1f1f commit 4ad96fda14d3606711ea037de0c9c9948950474b
Showing with 6 additions and 0 deletions.
  1. +3 −0 lib/resources/tasks/process-stylus.js
  2. +3 −0 lib/resources/tasks/process-stylus.ts
@@ -2,11 +2,14 @@ import gulp from 'gulp';
import changedInPlace from 'gulp-changed-in-place';
import sourcemaps from 'gulp-sourcemaps';
import stylus from 'gulp-stylus';
import plumber from 'gulp-plumber';
import notify from 'gulp-notify';
import project from '../aurelia.json';
import {build} from 'aurelia-cli';
export default function processCSS() {
return gulp.src(project.cssProcessor.source)
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(changedInPlace({firstPass: true}))
.pipe(sourcemaps.init())
.pipe(stylus())
@@ -2,11 +2,14 @@ import * as gulp from 'gulp';
import * as changedInPlace from 'gulp-changed-in-place';
import * as sourcemaps from 'gulp-sourcemaps';
import * as stylus from 'gulp-stylus';
import * as plumber from 'gulp-plumber';
import * as notify from 'gulp-notify';
import * as project from '../aurelia.json';
import {build} from 'aurelia-cli';
export default function processCSS() {
return gulp.src(project.cssProcessor.source)
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(changedInPlace({firstPass:true}))
.pipe(sourcemaps.init())
.pipe(stylus())

0 comments on commit 4ad96fd

Please sign in to comment.