Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make _variable.scss globally available without ejecting CRA2 #5920

Closed
thetandelsonesh opened this issue Nov 28, 2018 · 1 comment
Closed

Comments

@thetandelsonesh
Copy link

I'm using Sass in a Create React App project. I have a master.scss file with global var's, I would like to use those var's globally... (I don't want to @import "master" in every scss file ), Any other ideas how to make it globally available ?

Originally posted by @m-salamon in #1619 (comment)

@thetandelsonesh thetandelsonesh changed the title Any new suggestions? How to make varaible.scss globally available without ejecting CRA2 Nov 28, 2018
@thetandelsonesh thetandelsonesh changed the title How to make varaible.scss globally available without ejecting CRA2 How to make _variable.scss globally available without ejecting CRA2 Nov 28, 2018
@mrmckeb
Copy link
Contributor

mrmckeb commented Dec 8, 2018

Hi @thetandelsonesh, I don't think that is possible right now sorry, it's not a standard Sass feature and isn't available in sass-loader. Feel free to raise a PR if you can see a clean way of doing this.

@lock lock bot locked and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants