Kingsley Akindele
Kingsley Akindele

Reputation: 361

Use custom File For Sass in React Application

I am about starting a react application which I want to implement sass as my css preprocessor, all the resources I have consulted are all referring me to still using the default App.css file to just renaming it to App.scss. but my issue is I don't want to use the default I want to set up my own sass files in a different directory within my root directory.

Upvotes: 0

Views: 201

Answers (1)

Claeusdev
Claeusdev

Reputation: 503

So you can start in any directory you would want to, but make sure that you're bundling with in your root <Component /> in the case of a create-react-app generated app you could import your root SASS file in the <App /> or index.js. You will be able to bundle your sass this way.

Upvotes: 1

Related Questions