Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sass compiler #90

Open
adrianboston opened this issue Jan 13, 2023 · 5 comments
Open

sass compiler #90

adrianboston opened this issue Jan 13, 2023 · 5 comments

Comments

@adrianboston
Copy link

"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
Copy link
Member

epage commented Jan 13, 2023

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
Copy link
Author

adrianboston commented Jan 13, 2023

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

@epage
Copy link
Member

epage commented Jan 13, 2023

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
Copy link
Author

adrianboston commented Jan 13, 2023

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
Copy link
Author

adrianboston commented Jan 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants