afonsolage / bevy_ecss

Bevy crate which uses a subset of CSS to update Bevy ECS components
Apache License 2.0
98 stars 11 forks source link

SASS support #20

Open Leinnan opened 1 year ago

Leinnan commented 1 year ago

There is already existing crate that would allow really easy to add support for SASS extension to CSS. I have example implementation of the feature: https://github.com/Leinnan/bevy_ecss/commit/346ced7efeb6e9c9fdb907991ef2d8d7be6e079d

Leinnan commented 11 months ago

I think once this is live, that change could be an easy one to do and be separated behind a feature that could be disabled by default: https://github.com/bevyengine/bevy/pull/10565

afonsolage commented 11 months ago

I'm not experienced with SASS, but if at the end grass converts into a regular css content, then yeah, this would be done with Asset Preprocessor (.sass -> .css);

afonsolage commented 11 months ago

I forgot to say, but I'll take a look into SASS, create an example and check if we could use Asset Preprocessor