18 lines
419 B
JavaScript
18 lines
419 B
JavaScript
|
const sass = require('gulp-sass'),
|
||
|
clean = require('gulp-clean-css'),
|
||
|
gulp = require('gulp');
|
||
|
|
||
|
const config = {
|
||
|
src: __dirname + '/../../raw/scss/**/*.scss',
|
||
|
dest: __dirname + '/../../out/theme'
|
||
|
};
|
||
|
|
||
|
function buildCSS() {
|
||
|
return gulp.src(config.src)
|
||
|
.pipe(sass().on('error', sass.logError))
|
||
|
.pipe(clean())
|
||
|
.pipe(gulp.dest(config.dest));
|
||
|
}
|
||
|
|
||
|
module.exports.buildCSS = buildCSS;
|