1
Fork 0

Allow SCSS to be compiled too

This commit is contained in:
Bauke 2018-10-02 21:15:32 +02:00
parent 9b95e033db
commit 353b46249b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 4 additions and 4 deletions

View File

@ -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'])
}) })