Generate CSS Variables from a json file with Gulp
npm install --save-dev gulp-json-to-css-variables
or
yarn add --dev gulp-json-to-css-variables
const jsonToCssVariables = require('json-to-css-variables');
gulp.task('css-variables', () => gulp.src('example.json')
.pipe(jsonToCssVariables())
.pipe(gulp.dest('./dist'))
)