Skip to content

1stdibs/gulp-sass-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-sass-json

Gulp plugin for turning SASS variable definitions files into JSON files.

Installation

npm install --save-dave gulp-sass-json

Example

In this example gulpfile, a SASS variable file is turned into a JSON file.

var sassJson = require('gulp-sass-json');
var gulp = require('gulp');

gulp.task('sass-json', function () {
    return gulp
        .src('./**/*.scss')
        .pipe(sassJson())
        .pipe(gulp.dest('./cssVars'));
});