You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to pass some "free" variables (which depends on build settings in my case) into scss files. For javascript I use DefinePlugin. Is there a way to do the same for scss?
The text was updated successfully, but these errors were encountered:
I don't see an option in the node-sass api to inject vars, so for now this isn't possible.
A way you could do this anyway is to create some var-files: vars.dev.scss, vars.prod.scss and depending on the type of build clone one named as vars.scss .
Then just @import "vars"; in your stylesheet and it should work...
Is it possible to pass some "free" variables (which depends on build settings in my case) into scss files. For javascript I use
DefinePlugin
. Is there a way to do the same for scss?The text was updated successfully, but these errors were encountered: