Skip to content

Commit

Permalink
Merge pull request #383 from jugglingthebits/master
Browse files Browse the repository at this point in the history
Fix #382 by catching errors with gulp-plumber
  • Loading branch information
EisenbergEffect authored Nov 8, 2016
2 parents bba08c3 + a0f274a commit 6eeb121
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/resources/tasks/process-less.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import gulp from 'gulp';
import changedInPlace from 'gulp-changed-in-place';
import sourcemaps from 'gulp-sourcemaps';
import less from 'gulp-less';
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(changedInPlace({firstPass: true}))
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(sourcemaps.init())
.pipe(less())
.pipe(build.bundle());
Expand Down
5 changes: 4 additions & 1 deletion lib/resources/tasks/process-less.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import * as gulp from 'gulp';
import * as changedInPlace from 'gulp-changed-in-place';
import * as sourcemaps from 'gulp-sourcemaps';
import * as less from 'gulp-less';
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(changedInPlace({firstPass:true}))
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(sourcemaps.init())
.pipe(less())
.pipe(build.bundle());
};
}

0 comments on commit 6eeb121

Please sign in to comment.