clone
git clone git@github.com:airtonix/vike-vanilla-extract-onRenderHtml-bug-538.git
cd vike-vanilla-extract-onRenderHtml-bug-538
setup node/yarn
# this installs asdf, and any asdf plugins then installs the right nodejs/yarn version
chmod +x ./setup.sh
./setup.sh
dependencies and run dev mode
yarn
yarn dev
When running yarn build
- ✔️ that on inspection of
dist/client/index.html
that there is inhtml > head
one style tag forglobal.css.ts
(this seems to contain the css for bothglobal.css.ts
andPageShell.css.ts
)
when running yarn dev
:
- ✔️ that the
PageShell
component has generated css class names. - ✔️ that the
html
tag has generated css class names from theglobal.css.ts
- 🛑 that on inspection of
html > head
with devtools, that there is one style tag forPageShell.css.ts
(and it does not contain any css forglobal.css.ts
) - 🛑 There is no style tag in
html > head
that refers to theglobal.css.ts
as imported in ./renderer/+onRenderHtml.tsx` - 🛑 the page should have a red background
However:
- import
global.css.ts
intoPageShell.tsx
and now the above 🛑 are resolved.