im trying to load my CSS file in my Node JS app using handlebars, but i get the error
Refused to apply style from 'http://localhost:8080/styles/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I checked the path and its right. Any solution?
in my index.js i have app.use(express.static('public'))
and my handlebars html i have <link rel='stylesheet' type="text/css" href='/styles/main.css'>
My workspace is
-node_modules
-public
--styles
---main.css
-template-engine
--views
---layout
----main.handlebars