How to Compress SASS in Jekyll

To compress SASS, add the style: compressed under the sass attribute in the _config.yml file.

Jekyll has inbuilt support for SASS. Jekyll’s jekyll-sass-converter plugin is able to compress SASS into minified CSS. You don’t need to install it since it is already part of Jekyll.

How To Minify SASS in Jekyll

Open the _config.yml file and look for the sass entry. If there is none, create one as follows.

sass:
    style: compressed

The default value for the style option is expanded which creates a full CSS file without minification. Using the value compressed will result in a minified CSS file.

That’s all you need to do.