Skip to content

gulp plugin for converting Object to scss/sass variable String and output file.

License

Notifications You must be signed in to change notification settings

devjam/gulp-obj-sass-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-obj-sass-file

gulp plugin for converting Object to scss/sass variable String and output file.

Install

$ npm install gulp-obj-sass-file

Usage

var objSassFile = require('gulp-obj-sass-file'),
    gulp = require('gulp'),
    sass = require('gulp-sass');

gulp.task('conf-to-sass', function() {
  return gulp
    .src([
      'data/config.js',
      'data/config.json',
      'data/config.coffee' // if you use coffee-script
      ])
    .pipe(objSassFile({
      output: {
        path: 'css/variable.scss'
      }
    }))
    .pipe(gulp.dest('./'));
});

options

almost same options with obj-sass.
but output added.

see obj-sass.

output

Type: Object Default: {}
used for File of gulp-util options

output.cwd

Type: String Default: process.cwd()
the current working directory.

output.base

Type: String Default: output.cwd
used for relative pathing. typically where a glob starts.

output.path

Type: String Default: undefined
full path to the file.

License

MIT

About

gulp plugin for converting Object to scss/sass variable String and output file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published