I am a software developer working MERN Stack, interested in mobile development through React Native and React Native Web.
I love building software to optimize my everyday tasks
Hi, great article! I was following this and wanted to add my own stylesheet. So I made an external stylesheet and tried to load it in the html, but now the browser gets stuck at the request to the stylesheet in browser, the request stays pending.
Is there anything different I need to do? I think I need to include it in Deno static assets somehow?
Preact - Next.js - Deno - SSR - SSG 💻
Open source 📂
Machine learning 🤖
Books 📖
Sport 🏃♂️
Nature 🌱
Focus on being useful. I contribute AMAP to the OSS community. Love learning by doing.
This is because you are only serving the index.html file on the server. You also need to serve the file with your styles. Normally a better way is just to serve a public dir with all the statics / assets.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, great article! I was following this and wanted to add my own stylesheet. So I made an external stylesheet and tried to load it in the html, but now the browser gets stuck at the request to the stylesheet in browser, the request stays pending.
Is there anything different I need to do? I think I need to include it in Deno static assets somehow?
This is because you are only serving the
index.html
file on the server. You also need to serve the file with your styles. Normally a better way is just to serve apublic
dir with all the statics / assets.