Allow SCSS to be compiled too
This commit is contained in:
parent
9b95e033db
commit
353b46249b
|
@ -15,7 +15,7 @@ gulp.task('lint:sass', () => {
|
||||||
const options = {
|
const options = {
|
||||||
reporters: [{formatter: 'string', console: true}]
|
reporters: [{formatter: 'string', console: true}]
|
||||||
}
|
}
|
||||||
return gulp.src('sass/**/*.sass')
|
return gulp.src('sass/**/*.s*')
|
||||||
.pipe(stylelint(options))
|
.pipe(stylelint(options))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ gulp.task('build:dev', () => {
|
||||||
indent: ' ',
|
indent: ' ',
|
||||||
autosemicolon: true
|
autosemicolon: true
|
||||||
}
|
}
|
||||||
return gulp.src('sass/**/*.sass')
|
return gulp.src('sass/**/*.s*')
|
||||||
.pipe(sass(options).on('error', sass.logError))
|
.pipe(sass(options).on('error', sass.logError))
|
||||||
.pipe(beautify(bOptions))
|
.pipe(beautify(bOptions))
|
||||||
.pipe(gulp.dest('temp'))
|
.pipe(gulp.dest('temp'))
|
||||||
|
@ -41,7 +41,7 @@ gulp.task('build:prod', () => {
|
||||||
indent: ' ',
|
indent: ' ',
|
||||||
autosemicolon: true
|
autosemicolon: true
|
||||||
}
|
}
|
||||||
return gulp.src('sass/**/*.sass')
|
return gulp.src('sass/**/*.s*')
|
||||||
.pipe(sass(options).on('error', sass.logError))
|
.pipe(sass(options).on('error', sass.logError))
|
||||||
.pipe(beautify(bOptions))
|
.pipe(beautify(bOptions))
|
||||||
.pipe(gulp.dest('css'))
|
.pipe(gulp.dest('css'))
|
||||||
|
@ -109,5 +109,5 @@ gulp.task('generate', ['lint:js', 'lint:sass', 'build:dev', 'build:prod'], () =>
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('watch', () => {
|
gulp.task('watch', () => {
|
||||||
gulp.watch('sass/**/*.sass', ['lint:js', 'lint:sass', 'build:dev'])
|
gulp.watch('sass/**/*.s*', ['lint:js', 'lint:sass', 'build:dev'])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue