res) => {
res.sendFile(__dirname + '/index.html');
});
Refused to apply style from 'http://localhost:3000/css/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
/css/main.css ? express.static лучше path.join(__dirname, 'public')
Спасибо! 👍🏻
Обсуждают сегодня