This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
geeklabor_legacy/themes/geeklab/gulpfile.js

25 lines
752 B
JavaScript
Raw Normal View History

const gulp = require('gulp');
const minifyCSS = require('gulp-csso');
const concat = require('gulp-concat');
const rename = require('gulp-rename');
const cleanCSS = require('gulp-clean-css');
const autoprefixer = require('gulp-autoprefixer');
var CSSDEST = 'static/'
gulp.task('default', defaultTask);
function defaultTask(done) {
return gulp.src('src/css/*.css')
.pipe(concat('default.css'))
.pipe(cleanCSS({format: 'beautify'}))
.pipe(autoprefixer({
browsers: ['last 4 versions'],
cascade: false
}))
.pipe(gulp.dest(CSSDEST))
.pipe(cleanCSS())
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest(CSSDEST))
}