https://github.com/dasx10/gulp-hex-color-min
hex color minify
https://github.com/dasx10/gulp-hex-color-min
color css gulpfile hex minify
Last synced: 2 months ago
JSON representation
hex color minify
- Host: GitHub
- URL: https://github.com/dasx10/gulp-hex-color-min
- Owner: dasx10
- Created: 2021-02-16T17:22:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T09:52:59.000Z (over 5 years ago)
- Last Synced: 2025-06-02T05:10:20.068Z (about 1 year ago)
- Topics: color, css, gulpfile, hex, minify
- Homepage: https://www.npmjs.com/package/gulp-hex-color-min
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp hex color minify
## install
```
npm i -D gulp-hex-color-min
```
## use
```
const gulp = require('gulp');
const hexMin = require('gulp-hex-color-min')
function css(){
return gulp.src('./*.css')
.pipe(hexMin())
.pipe(gulp.dest('./dist'))
}
module.exports.css = css;
```
## run
```
gulp css
```
## example
input
```
div{
background: #220011;
color: #333333;
color: #332222;
color: #112233;
color: #FFAAAA;
color: #ffAAbb;
/* example no compress*/
color: #123456;
color: #12aa56;
color: #11aa56;
color: #12aa55;
}
```
output
```
div{
background: #201;
color: #333;
color: #322;
color: #123;
color: #faa;
color: #fab;
/* example no compress*/
color: #123456;
color: #12aa56;
color: #11aa56;
color: #12aa55;
}
```