Create-react-app: How to make _variable.scss globally available without ejecting CRA2

Created on 28 Nov 2018  路  1Comment  路  Source: facebook/create-react-app

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 https://github.com/facebook/create-react-app/issues/1619#issuecomment-438755957_

question

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fson picture fson  路  3Comments

Evan-GK picture Evan-GK  路  3Comments

onelson picture onelson  路  3Comments

alleroux picture alleroux  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  3Comments