[Bug?]: CSS is not applied on build when Vite build.cssCodeSplit: false
option is used
#1324
Open
2 tasks done
build.cssCodeSplit: false
option is used
#1324
Duplicates
Latest version
Current behavior 馃槸
After building an app with
cssCodeSplit: false
, a bundled and hashed CSS file is correctly created in the output, but the CSS file is not linked to or referenced by any file in the output.Expected behavior 馃
The CSS file should be linked on all routes, as if it were included as a
<link/>
inentry-server.tsx
Steps to reproduce 馃暪
Steps:
create solid
with thebasic
presetvite.config.ts
to:.output/public/_build/assets/style-[hash].css
file is not referenced in any generated html or js fileContext 馃敠
I am styling my app by importing different css files on different routes, and I would like to have the option of using
cssCodeSplit: false
to combine them all and avoid loading new CSS on navigation and causing unnecessary repaints / FOUCYour environment 馃寧
No response
The text was updated successfully, but these errors were encountered: