Host website on Github with sass folder

hi ive started using sass lately and when i try to host a website on github it shows 404, mainly because my index.html is inside /dist folder i couldnt figure a solution to this issue .
3 Replies
vince
vince4mo ago
I'm assuming you're using GitHub pages? I've never used it before but like you said you would probably have to point the config to the /dist folder rather than the root If your setup is super simple, you don't need a /dist folder to work with Sass You can just compile the Sass into a .css file with sass --watch /path/to/input/file /path/to/output/folder --style compressed and then import the css file in your link like normal
ilyes
ilyesOP4mo ago
iam using this structure project/ | | - dist/ | |- css/... | |- js/... | |- img/... | ... | |- _index.scss | | - scss/ | |- main.scss | ... i am fairly a beginner to github i used it mainly on static pages where the project is small and simple ,ive heard while searching for solution about github actions and workplace and branches ,ghpages.... donno if thats the solution to my issue .
vince
vince4mo ago
I think it could help, it's worth looking into Or you could just restructure it to be just the sass folder and then the rest of your files are loose in your root

Did you find this page helpful?