You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locally, I import the css in the client entry point file and vite injects the styles on the page. 🚀
when I build, I want to grab the generated css path from the manifest.
tried reading the file with fs - not supported on cloudflare pages
tried doing a dynamic import of the file, one flavor was a top level await, which seems to be not supported in cloudflare pages
tried dynamic import in the handler, does not seem to be available in terms of file path.
I am able to import the json that is produced when the client is built first, then the server is built so it works, but then i'm left with locally coming up with some way to avoid this.
hi, I am trying to do the following:
locally, I import the css in the client entry point file and vite injects the styles on the page. 🚀
when I build, I want to grab the generated css path from the manifest.
fs
- not supported on cloudflare pagesI am able to import the json that is produced when the client is built first, then the server is built so it works, but then i'm left with locally coming up with some way to avoid this.
is there a recommended approach?
some sample code to illustrate. this works when I deploy, but if you haven't built locally it fails due to the json fiel not being present,.
The text was updated successfully, but these errors were encountered: