mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 09:15:37 -06:00
29 lines
646 B
JavaScript
29 lines
646 B
JavaScript
const sass = require('gulp-sass');
|
|
const prefix = require('gulp-autoprefixer');
|
|
const cleanCSS = require('gulp-clean-css');
|
|
|
|
const scssPath = '_scss/*.scss';
|
|
const destPath = '_site/css';
|
|
|
|
module.exports = gulp => {
|
|
gulp.task('sass', () => {
|
|
return gulp
|
|
.src(scssPath)
|
|
.pipe(
|
|
sass({
|
|
includePaths: ['scss'],
|
|
outputStyle: 'expanded',
|
|
})
|
|
)
|
|
.pipe(
|
|
prefix({
|
|
overrideBrowserslist: ['last 2 versions'],
|
|
cascade: false,
|
|
})
|
|
)
|
|
.pipe(cleanCSS({ compatibility: 'ie8' }))
|
|
.pipe(gulp.dest(destPath))
|
|
.pipe(gulp.dest('css'));
|
|
});
|
|
};
|