practice-time-shopping-list.../gulpfile.js

16 lines
382 B
JavaScript
Raw Normal View History

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;