Skip to content

Commit

Permalink
Merge pull request #242 from yeoman/plumber
Browse files Browse the repository at this point in the history
Use Sass built-in error logging
  • Loading branch information
sindresorhus committed Dec 15, 2014
2 parents 4ba2680 + 7851bc0 commit bb6070f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"gulp-jshint": "^1.5.3",
"gulp-livereload": "^2.0.0",
"gulp-load-plugins": "^0.7.1",
"gulp-minify-html": "^0.1.6",<% if (includeSass) { %>
"gulp-plumber": "^0.6.3",<% } %>
"gulp-minify-html": "^0.1.6",
"gulp-postcss": "^1.0.2",<% if (includeSass) { %>
"gulp-ruby-sass": "^0.7.1",<% } %>
"gulp-size": "^1.1.0",
Expand Down
4 changes: 2 additions & 2 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ var $ = require('gulp-load-plugins')();

gulp.task('styles', function () {<% if (includeSass) { %>
return gulp.src('app/styles/main.scss')
.pipe($.plumber())
.pipe($.rubySass({
style: 'expanded',
precision: 10
}))<% } else { %>
}))
.on('error', function (err) { console.log(err.message); })<% } else { %>
return gulp.src('app/styles/main.css')<% } %>
.pipe($.postcss([
require('autoprefixer-core')({browsers: ['last 1 version']})
Expand Down

0 comments on commit bb6070f

Please sign in to comment.