Is it possible to include a global config/variables file?
See original GitHub issueI’ve been looking through the docs and issues but I can’t seem to find anything that quite encompasses this issue.
Take the following example in “standard” SASS:
@import "config";
@import "some-child-partial";
The child partial here would be able to access any variables exposed by the config file, but in sass-loader
land, each stylesheet is treated as its own entity, meaning you can’t do a global import.
Is there a way to include a file to all loaded stylesheets, or is it necessary to manually import the file in every stylesheet?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:15
- Comments:27 (6 by maintainers)
Top Results From Across the Web
Custom Global Variables Using the Config File
Learn how to define global variables in your config file.
Read more >Avoiding Global Variables For Configuration File Reading in C
First of all, if the values are read once and never changed after that, then storing them as global variables is not a...
Read more >Global variable in a config file - Help - UiPath Community Forum
In my current project we use configuration files to store global variables. We then create an Orchestrator asset to store the configuration file...
Read more >Apart from Global Variable feature, Is there any other option to ...
While global vars and server properties are possibilities, I would advise against them. Naming scheme and scalability are two of the concerns.
Read more >How do I assign custom global variables from my config file?
You can still use the Global Variables Array, that formerly existed in the path.php file, but now exists in your primary index.php file...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+ 1,000,000,000,000...
Yep.
However, I don’t recommend this kind of project structure. In my experience, explicit dependencies are always better than implicit ones.