Hosting a single css file on cdn, without a site?

Hi

I have developed a styles library and I would like to be able to host a single CSS file by CDN.

My library does not have a website just a github repo. The file I want to serve will be at the root /dist/react-context-menu.css within the repo.

Is it possible to serve this file on cdn through cloudflare?

All I can see is add site.

Thanks

In this case it might be the easiest to deploy a Worker which returns that CSS as content. Here you could also use the default Worker domain and wouldn’t need to add your own site.

Keep in mind, Workers are only free up to 100,000 requests a day. If you exceed that you need to switch to the paid plan.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.