gulp-vars
v0.1.6
Published
CSS Variables
Downloads
28
Readme
Plugin for gulp to add support for the W3C-style CSS variables syntax.
Installation
npm install gulp-vars --save-dev
Gulpfile Example
var gulp = require('gulp');
var vars = require('gulp-vars');
gulp.task('default', function() {
return gulp.src('input/css')
.pipe(vars())
.pipe(gulp.dest('output/css'));
});
Input Example
:root{
--variable: value;
}
element{
color: var(--variable);
}
Output Example
:root{
--variable: value;
}
element{
color: value;
}
License
MIT