Is it possible to use plain CSS instead of SASS in Jekyll

Viewed 327

I want to create a simple Jekyll site and I need none of the features of SASS.

I searched the docs but found no answer.

1 Answers

You have three options:

  • Just use the scss extension for your css (css is a subset of scss). As stated in the documentation https://jekyllrb.com/docs/assets/ Jekyll will take care of them

  • create a directory css, put your css there and refrence to it from your files. Jekyll will copy it verbatim to the generated site (documentation reference: https://jekyllrb.com/docs/structure/ other file/folder section)

  • put your css files in an external url (a cdn, maybe?) and reference them in your files.

I would go with the first option, but if you are not at ease with Jekyll manipulating your css files, and if you are really picky with it copying is still a form of manipulation, you may resort to the other solutions.

Related