// Style
gulp.task('style', function() {
return gulp.src(srcPath + 'sass/main.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(postcss(postCssSettings))
.pipe(sourcemaps.write('/'))
.pipe(gulp.dest(distPath + 'styles'))
.pipe(
browserSync.stream({match: '**/*.css'}));
});
// Style build
gulp.task('style-build', function() {
return gulp.src(srcPath + 'sass/main.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gcmq())
.pipe(postcss(postCssSettings))
.pipe(gulp.dest(distPath + 'styles'));
});