Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avil13/gulp-add-less-variables
https://github.com/avil13/gulp-add-less-variables
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/avil13/gulp-add-less-variables
- Owner: avil13
- Created: 2015-09-28T15:02:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T09:00:53.000Z (over 8 years ago)
- Last Synced: 2024-10-11T17:18:09.215Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-add-less-variables
Add varibles to less files in gulp-plugin config options.
[![Package Quality](http://npm.packagequality.com/badge/gulp-add-less-variables.png)](http://packagequality.com/#?package=gulp-add-less-variables)
example:
```JavaScript
var gulp = require('gulp');
var lessVars = require('gulp-add-less-variables');gulp.task('less', function() {
gulp.src(lessFiles)
.pipe(lessVars({
var1: '10px', // => @var1: '10px'
var2: '20px', // => @var2: '20px'
var3: ['#000000', '#ffffff', '#acacac'] // => @var3: '#000000, #ffffff, #acacac'
}))
.pipe(less())
.pipe(concat('style.css'))
.pipe(gulp.dest('./public/css'));
});```
`var1, var2, var3` will be added at begin of file.