17 lines
421 B
JavaScript
17 lines
421 B
JavaScript
const gulp = require('gulp')
|
|
const gulpSass = require('gulp-sass')
|
|
|
|
gulpSass.compiler = require('node-sass')
|
|
|
|
const sass = () =>
|
|
gulp.src('./assets/scss/style.scss')
|
|
.pipe(gulpSass({outputStyle: 'compressed'}))
|
|
.pipe(gulp.dest('./assets/css'))
|
|
|
|
const sassWatch = () =>
|
|
gulp.watch('./assets/scss/style.scss', gulp.series('sass'))
|
|
|
|
exports.sass = sass
|
|
exports.sassWatch = sassWatch
|
|
exports.default = sassWatch
|