gulp-ahex
v1.0.0
Published
Alpha hexadecimal gulp plugin
Downloads
53
Maintainers
Readme
gulp-ahex
Alpha hexadecimal gulp plugin
Installation
npm install -S gulp-ahex
Usage
gulpfile.js
const gulp = require('gulp');
const ahex = require('gulp-ahex');
gulp.task('css', function(){
return gulp.src('./src/style.css')
.pipe(ahex())
.pipe(gulp.dest('./dist/'))
});
gulp.task('default', [ 'css' ]);
input file src/style.css
body{
color: #00ff0077;
}
output file dist/style.css
body{
color: rgba(0, 255, 0, 0.47);
}
Go here for more documentation about writing ahex colors