DEV Community

kiran kumar reddy
kiran kumar reddy

Posted on

How can I make react built minified CSS file as CDN links

When I run build command I will get a build folder that contains minified JS, CSS files. When I deploy code in production my CSS will load from build folders.

Problem: I don't want my build.css to load it from the same domain in production, instead wanted to create CDN links then call it. This process helps in fetching API calls fast instead of depending on a single Domain which will behave as concurrent API Calls.

Top comments (1)

Collapse
 
dance2die profile image
Sung M. Kim

Not familiar with this but CRA (create-react-app) has a "public/index.html", in which you can specify the CSS link. I am not familiar with dynamically adding it though.