Closed manzano78 closed 4 months ago
🤖 Hello there,
We just published version 2.7.0-pre.2
which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Thanks!
@manzano78 Thanks for raising this issue, and thanks for the repro! I've checked 2.7.0-pre.2
against your StackBlitz and everything seems to be working.
🤖 Hello there,
We just published version 2.7.0
which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Thanks!
Reproduction
npm run build
npm start
System Info
Used Package Manager
npm
Expected Behavior
The styles of
~/styles.css?url
in root.tsx should be appliedActual Behavior
The styles of
~/styles.css
are not applied because the browser can't reach the file (HTTP 404). The reason is the production build didn't copy the file to client public assets. It works in development though. It also works if I use another extension than.css
. My use case is to manage dynamic stylesheets based on the domain for multi-branding without sending every theme information to the browser. This works in the current Remix bundler.Note: the vite version I use contains the fix of the
.css?url
issue.