2020-09-23 10:42:08 +00:00
|
|
|
const gulp = require('gulp')
|
|
|
|
const gulpSass = require('gulp-sass')
|
2019-03-14 15:45:43 +00:00
|
|
|
|
2020-09-23 10:42:08 +00:00
|
|
|
gulpSass.compiler = require('node-sass')
|
2019-03-14 15:45:43 +00:00
|
|
|
|
2020-09-23 10:42:08 +00:00
|
|
|
const sass = () =>
|
|
|
|
gulp.src('./assets/scss/style.scss')
|
2021-11-16 12:25:22 +00:00
|
|
|
.pipe(gulpSass({outputStyle: 'compressed'}))
|
2020-09-23 10:42:08 +00:00
|
|
|
.pipe(gulp.dest('./assets/css'))
|
2019-03-14 15:45:43 +00:00
|
|
|
|
2020-09-23 10:42:08 +00:00
|
|
|
const sassWatch = () =>
|
2021-11-16 12:25:22 +00:00
|
|
|
gulp.watch('./assets/scss/style.scss', gulp.series('sass'))
|
2019-03-14 15:45:43 +00:00
|
|
|
|
2020-09-23 10:42:08 +00:00
|
|
|
exports.sass = sass
|
|
|
|
exports.sassWatch = sassWatch
|
|
|
|
exports.default = sassWatch
|