our-status-site-theme/gulpfile.js

17 lines
421 B
JavaScript
Raw Normal View History

const gulp = require('gulp')
const gulpSass = require('gulp-sass')
2019-03-14 15:45:43 +00:00
gulpSass.compiler = require('node-sass')
2019-03-14 15:45:43 +00:00
const sass = () =>
gulp.src('./assets/scss/style.scss')
.pipe(gulpSass({outputStyle: 'compressed'}))
.pipe(gulp.dest('./assets/css'))
2019-03-14 15:45:43 +00:00
const sassWatch = () =>
gulp.watch('./assets/scss/style.scss', gulp.series('sass'))
2019-03-14 15:45:43 +00:00
exports.sass = sass
exports.sassWatch = sassWatch
exports.default = sassWatch