Skip to content

Commit

Permalink
Merge pull request #6 from indigotree/fix-watch-task
Browse files Browse the repository at this point in the history
changed the source so sub directories are built
  • Loading branch information
crgeary authored Oct 19, 2017
2 parents 5eceb33 + c2ab6e1 commit 8c56482
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ gulp.task('hugo-preview', (cb) => {

gulp.task('sass', () => {
return gulp.src([
'src/sass/app.scss'
'src/sass/**/*.scss'
])
.pipe($.plumber({ errorHandler: onError }))
.pipe($.newer('static/css/app.css'))
.pipe($.print())
.pipe($.sassLint())
.pipe($.sassLint.format())
Expand All @@ -76,10 +75,9 @@ gulp.task('js-watch', ['js'], (cb) => {

gulp.task('js', () => {
return gulp.src([
'src/js/app.js'
'src/js/**/*.js'
])
.pipe($.plumber({ errorHandler: onError }))
.pipe($.newer('static/js/app.js'))
.pipe($.print())
.pipe($.babel())
.pipe($.concat('app.js'))
Expand Down

0 comments on commit 8c56482

Please sign in to comment.