Search code examples
jekyllcompass-sass

Jekyll overwrites output folder and CSS generated by Compass


I am trying to use Jekyll together with Compass. On one command line I'm running jekyll --auto and in another one compass watch. The SASS files are located in /stylesheets and are compiled into /_site/stylesheets. Jekyll is configured to ignore /stylesheets.

Compiling the stylesheets works fine in the beginning, but everytime I change something that makes Jekyll regenerate the site, it overwrites the whole /_site folder and /_site/stylesheets is gone. Compass doesn't regenerate it since the source SASS files haven't changed.

Is there another way to use Jekyll together with Compass? Can I configure Jekyll to not overwrite the complete output folder but just the files that changed?


Solution

  • Im using Jekyll & Compass for my github page. here: https://github.com/ardianzzz/ardianzzz.github.com

    Simple, I just put the generated css folder in the root folder. Jekyll will generate the file inside _site folder.

    As you can see in my repository.

    Just call the CSS with the following code

    <link href = "/css/screen.css" ...
    

    bad english, sorry. :)