cobalt-org.github.io icon indicating copy to clipboard operation
cobalt-org.github.io copied to clipboard

sass compiler

Open adrianboston opened this issue 3 years ago • 5 comments

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

adrianboston avatar Jan 13 '23 19:01 adrianboston

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

epage avatar Jan 13 '23 20:01 epage

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

adrianboston avatar Jan 13 '23 20:01 adrianboston

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

epage avatar Jan 13 '23 20:01 epage

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 avatar Jan 13 '23 20:01 adrianboston

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

adrianboston avatar Jan 13 '23 20:01 adrianboston