I have been trying to deploy a html/sass project onto Vercel, but css/sass is not loading
Whenever I make a deployment with the project, the css is not loading. I have made sure multiple times that the pathing is correct, but whenever I load the site and inspect or view the page source, it shows the link for the stylesheet, but clicking on the href leads to nothing. The stylesheet link is set to '../sass/style.css' and not '../sass/style.sass', but its still not loading anything. Is this a problem with Vercel, or is something wrong with my directory?
5 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Have you compiled your SASS to CSS in your build step?
No, I havent actually. Is there a certain way to do that?
You'll need to install sass from npm and run it in your build script, I believe Kevin has a video on setting this up which explains why doing it this way is better than using a vscode extension or something.
I'm guessing you aren't using a JS framework, many of those handle compiling sass in a different way
Okay, that might be the reason then. I typically work with React when using sass, but I'm doing a freelance with just html and sass for the first time ha