mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 15:15:39 -06:00
Update a few packages
This commit is contained in:
@@ -1,25 +1,28 @@
|
||||
const sass = require('gulp-sass');
|
||||
const prefix = require('gulp-autoprefixer');
|
||||
const cleanCSS = require('gulp-clean-css');
|
||||
const sass = require('gulp-sass');
|
||||
const prefix = require('gulp-autoprefixer');
|
||||
const cleanCSS = require('gulp-clean-css');
|
||||
|
||||
const scssPath = '_scss/*.scss';
|
||||
const destPath = '_site/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({
|
||||
browsers: ['last 2 versions'],
|
||||
cascade: false
|
||||
}))
|
||||
return gulp
|
||||
.src(scssPath)
|
||||
.pipe(
|
||||
sass({
|
||||
includePaths: ['scss'],
|
||||
outputStyle: 'expanded',
|
||||
})
|
||||
)
|
||||
.pipe(
|
||||
prefix({
|
||||
browsers: ['last 2 versions'],
|
||||
cascade: false,
|
||||
})
|
||||
)
|
||||
.pipe(cleanCSS({ compatibility: 'ie8' }))
|
||||
.pipe(gulp.dest(destPath))
|
||||
.pipe(gulp.dest('css'));
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user