meshviewer/gulp/tasks/sass.js

19 lines
551 B
JavaScript
Raw Normal View History

2017-03-22 22:13:37 +00:00
module.exports = function (gulp, plugins, config, env) {
return function sass() {
return gulp.src('scss/*.scss')
.pipe(env.development(plugins.sourcemaps.init()))
.pipe(plugins.sass({
outputStyle: 'compressed',
sourceMap: false
}))
2018-01-05 21:59:34 +00:00
.on('error', function () {
this.emit('end');
})
2017-03-22 22:13:37 +00:00
.pipe(plugins.autoprefixer({
browsers: config.autoprefixer
}))
.pipe(env.development(plugins.sourcemaps.write('.', { addComment: true })))
.pipe(gulp.dest(config.build));
};
};