Skip to content

Commit

Permalink
Fix CSS not ending up in the build
Browse files Browse the repository at this point in the history
Because we weren't returning the stream, `html` task wasn't waiting for it to finish. dlmanning/gulp-sass#90 (comment)
  • Loading branch information
silvenon committed Jun 13, 2015
1 parent 599e2f1 commit 838a2f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"gulp-load-plugins": "^0.10.0",
"gulp-minify-css": "^1.1.1",
"gulp-minify-html": "^1.0.0",<% if (includeSass) { %>
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.0.0",<% } %>
"gulp-size": "^1.2.1",
"gulp-sourcemaps": "^1.5.0",
Expand Down
5 changes: 3 additions & 2 deletions app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const $ = gulpLoadPlugins();
const reload = browserSync.reload;

gulp.task('styles', () => {<% if (includeSass) { %>
gulp.src('app/styles/*.scss')
return gulp.src('app/styles/*.scss')
.pipe($.plumber())
.pipe($.sourcemaps.init())
.pipe($.sass({
.pipe($.sass.sync({
outputStyle: 'expanded',
precision: 10,
includePaths: ['.']
Expand Down

0 comments on commit 838a2f9

Please # to comment.