cobalt-org / cobalt-org.github.io

Website for cobalt.rs

Home Page:http://cobalt-org.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sass compiler

adrianboston opened this issue · comments

commented

"Cobalt has default support for Sass since v0.12.2."

placing .scss file in a sass (and _sass) directory does little.

is there a built in sassc like zola?

We are using sass-rs, which is a wrapper around libsass, which is the same that zola is using. We are considering switching to grass, a pure-rust re-implementation, as we have been having build problems with libsass

commented

ok sounds good. so how is it implemented. place files in _sass dir and presto.

Place sass files throughout your project and they will be compiled to a mirror location in the output. The _sass folder is for imports

commented

oh so they are picked up by .scss extension?
and don't we want avoid copying the .scss directory and thus use a directory with a _ prefix

commented

ok it seems like .scss files placed in /assets/sass/ are actually compiled to their proper .css format.
following the .css files are built into the /var/folders/xxx/.xxx directory.
the uncompiled .scss files should be in an /assets/css directory but its still good. thanks. great project