r/learnreactjs • • Nov 07 '22

Finding import reference to external CSS

I'm struggling with a React frontend that is referencing a CSS file from another host. I need to change the referenced file on that host but I cannot find where this import is occurring. Does anyone have any hints on where the prior dev could have put this reference? I've looked over the config/webpack.config.js and the jsconfig.json, package.json, but I can't seem to find where this import is happening.

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/PauseNatural Nov 08 '22

Is it possible that the css file is being linked through an import or an api statement then?

If you are doing a GREP on all the source files and you can’t find it, it must be put through a variable that combines the text or it itself is linked through an external source.

My only other guess is that it’s an ENV const on the server which isn’t part of the git (this is just a wild assumption)

Sorry, I’m just trying to imagine the possibilities. Wish I could help find the answer.

1

u/Col_Parity Nov 08 '22

I've been searching the owners .cshrc and looking for any thing that could get started by apache in an .htaccess. The hunt is on...