https://github.com/plentycode/gulp-sass-export
Gulp plugin for sass-export utilities.
https://github.com/plentycode/gulp-sass-export
hacktoberfest hacktoberfest2021 sass-export sass-to-json
Last synced: about 1 year ago
JSON representation
Gulp plugin for sass-export utilities.
- Host: GitHub
- URL: https://github.com/plentycode/gulp-sass-export
- Owner: plentycode
- Created: 2017-08-20T02:55:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T22:09:16.000Z (almost 9 years ago)
- Last Synced: 2025-05-07T06:16:24.270Z (about 1 year ago)
- Topics: hacktoberfest, hacktoberfest2021, sass-export, sass-to-json
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gulp-Sass-Export
Gulp plugin for [sass-export] Sass export utilities.
#### Use it for dev
Install it from NPM
```
$ npm install --save-dev gulp-sass-export
```
#### gulp plugin usage
``` javascript
const gulp = require('gulp');
const sassExport = require('gulp-sass-export');
gulp.task('sass-export', function() {
let sourceFiles = ['./scss/_variables.scss', './scss/_colors.scss', './scss/utils/*.scss'];
gulp.src(sourceFiles)
.pipe(sassExport({
fileName: 'sass-data.json',
dependencies: ['./scss/globals/']
}))
.pipe(gulp.dest('./tmp'))
});
gulp.task('default', ['sass-export']);
```
### Options:
* **fileName**: {String} output file name. Default: 'sass-exported.json'
* **dependencies**: {array} list of folders where your source files should look for the imports. default: []
* **type**: {String} set it to 'array' for an array typed output, default 'structured'
[sass-export]: