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/> in entry-server.tsx
Steps to reproduce 🕹
Steps:
Create a SolidStart app using create solid with the basic preset
Update vite.config.ts to:
import { defineConfig } from "@solidjs/start/config";
3. Run the build script
4. observe that the generated `.output/public/_build/assets/style-[hash].css` file is not referenced in any generated html or js file
### Context 🔦
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 / FOUC
### Your environment 🌎
_No response_
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:export default defineConfig({ build: { cssCodeSplit: false, }, });