Skip to content

Commit 8c56482

Browse files
authored
Merge pull request #6 from indigotree/fix-watch-task
changed the source so sub directories are built
2 parents 5eceb33 + c2ab6e1 commit 8c56482

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gulpfile.babel.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ gulp.task('hugo-preview', (cb) => {
5454

5555
gulp.task('sass', () => {
5656
return gulp.src([
57-
'src/sass/app.scss'
57+
'src/sass/**/*.scss'
5858
])
5959
.pipe($.plumber({ errorHandler: onError }))
60-
.pipe($.newer('static/css/app.css'))
6160
.pipe($.print())
6261
.pipe($.sassLint())
6362
.pipe($.sassLint.format())
@@ -76,10 +75,9 @@ gulp.task('js-watch', ['js'], (cb) => {
7675

7776
gulp.task('js', () => {
7877
return gulp.src([
79-
'src/js/app.js'
78+
'src/js/**/*.js'
8079
])
8180
.pipe($.plumber({ errorHandler: onError }))
82-
.pipe($.newer('static/js/app.js'))
8381
.pipe($.print())
8482
.pipe($.babel())
8583
.pipe($.concat('app.js'))

0 commit comments

Comments
 (0)