Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phpnode
· 7y ago · 0 comments
for your specific example - you can declare SCSS variables in a JSON file, that makes the definitions accessible to both JS and SCSS.
Comments
[–]
iooi
7y ago
This sounds pretty interesting, thanks for sharing. Do you have an example you can share? Are you using node-sass-json-importer?
[–]
phpnode
OP
7y ago
Using sass-vars-loader for this which is a webpack plugin:
https://github.com/epegzz/sass-vars-loader