forked from M3-Academy/practice-time-shopping-list
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
const { src, dest, watch } = require('gulp');
|
|
const sass = require('gulp-sass')(require('sass'));
|
|
|
|
function styles() {
|
|
return src('src/styles/main.scss')
|
|
.pipe(sass({ outputStyle: "compressed" }).on('error', sass.logError))
|
|
.pipe(dest('dist'));
|
|
}
|
|
|
|
function sentinel() {
|
|
watch('src/styles/*.scss', { ignoreInitial: false }, styles);
|
|
}
|
|
|
|
exports.sentinel = sentinel; |