@feq/gulp-css-min

1.2.0 • Public • Published

gulp-css-min

一个 gulp css 压缩插件, fork 自gulp-cssmin 原项目已不再维护, 替换了一些已经过期的依赖包.

安装

yarn add @feq/gulp-css-min -D

示例

const gulp = require('gulp');
const rename = require('gulp-rename');
const cssmin = require('@feq/gulp-css-min');

gulp.task('default', async () => {
  await gulp.src('demo/test.css')
    .pipe(cssmin())
    .pipe(rename({ suffix: '.min' }))
    .pipe(gulp.dest('demo/'));
});

配置

cssmin(minifyOptions?: object, pluginOptions?: object)

  • minifyOptions: 查看 clean-css options
  • pluginOptions
    • log?: boolean, 是否显示日志, 默认为false

Readme

Keywords

none

Package Sidebar

Install

npm i @feq/gulp-css-min

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

6.87 kB

Total Files

12

Last publish

Collaborators

  • roojay