question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to include a global config/variables file?

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Reactions:15
  • Comments:27 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
andrewmclagancommented, May 22, 2016

+ 1,000,000,000,000...

11reactions
jhnnscommented, Jul 11, 2016

Yep.

However, I don’t recommend this kind of project structure. In my experience, explicit dependencies are always better than implicit ones.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found