experimental.directRenderScript
does not include css files in build
#10998
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
experimental.directRenderScript
does not include css files in build
#10998
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If I included a CSS file in a script:
the CSS is included in the output html when I run
npm run build
, just as expected:However, if I enable
experimental.directRenderScript
and runnpm run build
again, the CSS is not included:Also the script
/_astro/index.astro_astro_type_script_index_0_lang.Do_j2sSD.js
doesn't exist in thedist
folder.npm run dev
works as expected.What's the expected result?
If
experimental.directRenderScript
is enabled, the CSS should still be included in the html output.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-yv1zse?file=src%2Fenv.d.ts,src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: