mart-w.de/static/fonts/lato-font-3.0.0/gulp-tasks/styles/build.js
2024-04-03 03:44:07 +02:00

31 lines
613 B
JavaScript

const compass = require('gulp-compass');
const minifyCSS = require('gulp-minify-css');
const rename = require('gulp-rename');
const SCSS_CONFIG = {
css: CSS_OUTPUT_PATH,
sass: SCSS_SOURCE_PATH,
environment: 'development',
style: 'expanded',
comments: true
};
module.exports = function (gulp) {
return gulp.src(SCSS_SOURCE_PATH + '/*.scss')
// Compiling SCSS to CSS.
.pipe(compass(SCSS_CONFIG))
.pipe(gulp.dest(CSS_OUTPUT_PATH))
// Writing minified version.
.pipe(rename({ suffix: MINIFICATION_SUFFIX }))
.pipe(minifyCSS())
.pipe(gulp.dest(CSS_OUTPUT_PATH))
;
};