提交 8a3e2650 编写于 作者: A acgotaku

update css min package

上级 b978014d
......@@ -17,7 +17,7 @@ const postcss = require('gulp-postcss')
const sass = require('gulp-sass')
const autoprefixer = require('autoprefixer')
const concat = require('gulp-concat')
const cssmin = require('gulp-cssmin')
const cleanCSS = require('gulp-clean-css')
const imagemin = require('gulp-imagemin')
const mozjpeg = require('imagemin-mozjpeg')
......@@ -109,7 +109,7 @@ gulp.task('css', function () {
]))
.pipe(concat('style.css'))
.pipe(gulpIf(config.env.dev, sourcemaps.write()))
.pipe(gulpIf(config.env.prod, cssmin()))
.pipe(gulpIf(config.env.prod, cleanCSS()))
.pipe(gulp.dest('dist/css/'))
})
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册