node-sass-json-importer
JSON importer for node-sass. Allows @import
ing .json
files in Sass files parsed by node-sass
.
Usage
This module hooks into node-sass's importer api.
var sass = ;var jsonImporter = ; // Example 1sass; // Example 2var result = sass;
sass-loader
; ...// Webpack config sassLoader: importer: jsonImporter
Thanks to
This module is based on the sass-json-vars gem, which unfortunately isn't compatible with node-sass
.