I need to transfer some variables from my JavaScript configuration file to SASS. To achieve this, I am utilizing a gulp plugin called https://www.npmjs.com/package/gulp-json-data-to-sass, which requires a JSON file as input.
Below is an excerpt from my configuration file:
// config.js
module.exports = {
use: {
gallery: true,
animations: true,
},
}
Could anyone advise on the appropriate method to convert this into a valid JSON file? It would be convenient if this conversion could be accomplished using gulp itself so that it can be passed to the mentioned plugin.