cobalt-org / cobalt-org.github.io

Website for cobalt.rs
http://cobalt-org.github.io/
23 stars 24 forks source link

sass compiler #90

Open adrianboston opened 1 year ago

adrianboston commented 1 year ago

"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?

epage commented 1 year ago

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

adrianboston commented 1 year ago

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

epage commented 1 year ago

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

adrianboston commented 1 year ago

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

adrianboston commented 1 year ago

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