const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const sourcemaps = require('gulp-sourcemaps');
const watch = require('gulp-watch');
function buildStyles() {
return gulp.src('./scss/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./css'));
};
exports.buildStyles = buildStyles;
function watch() {
buildStyles gulp.watch('./scss/**/*.scss', buildStyles);
};
exports.watch = watch;
const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const sourcemaps = require('gulp-sourcemaps');
const watch = require('gulp-watch');
function buildStyles() {
return gulp.src('./scss/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./css'));
};
exports.buildStyles = buildStyles;
function watch() {
gulp.watch('./scss/**/*.scss', ['scss']);
};
exports.watch = watch;
Спасибо!