DEV Community

Usaid
Usaid

Posted on

website not running on express(), need help.

Trying to run website on express server but it fails to get the styles and only shows the html file, i have included the stylesheet inside the html file, any ideas why ?

Discussion (2)

Collapse
kojikanao profile image
Koji (he/him)

hard to point out an issue you have without seeing the code, but my guess is a MIME setting.
This might be useful.

stackoverflow.com/questions/174785...

Collapse
grafov_nikita profile image
Nikita Grafov

Maybe check that CSS and other static files are served by the server.

expressjs.com/en/starter/static-fi...