-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Description
It's just a suggestion for implement.
Now global variables defined as 'variables' in options. And it is an js object.
For me it would be better to import variables as file instead, for example:
options: { variablesPath: 'src/variables.css' }
P.S. Why I need it:
It's because I use css-modules and have no way to set variables declarations somewhere top.
It is possible to import variables from every file which needs them, but I'm using variables as a method to decouple components from global files :) As a context for component...
The solution I use for now is implicitly importing of variables file in sass-loader.
tzaban, afk-mario, nathanchase, cheshrkat, gpoitch and 10 more