I saw similar posts on SO here and on GH here, but neither solved the issue that I have.
I have a Jekyll app on my gh pages where I needed to use scss features (mostly for mixins). However, I could not get jekyll to work with scss.
Currently, this is where my (CSS) files are at. All of my CSS are taken from custom.css. I imported it in header <link rel="stylesheet" href="{{ site.baseurl }}/assets/stylesheets/custom.css">.
The .scss files inside _sass folder are empty.
This is what it looks like inside _config.yml:
...
#sass
sass:
sass_dir: _sass
style: compressed
That's where I am at now. Here are some things I have tried:
I have tried changing
custom.cssintocustom.scss(and then updated the header<link href... stylesheets/custom.scss">. When I do that, I getResource interpreted as Stylesheet but transferred with MIME type text/x-scss...error.I tried changing the configuration inside
_config.ymlinto:sass: sass_dir: assets/stylesheets style: compressed... and kept the changes from 1. I restartedjekyll server. However I still getResource interpreted as Stylesheet but transferred with MIME type text/x-scss...error.Tried adding
<link rel="stylesheet" href="{{ site.baseurl }}/_sass/main.scss">, but I getGET http://localhost:4000/_sass/main.scsserror.
The problem, I noticed, is that the app seem to not recognize main.scss at all. I tried to create a simple red-colored div with main.scss, but nothing was displayed.
The question is, how can I use .scss with Jekyll?
