leptos-rs / cargo-leptos

Build tool for Leptos (Rust)
MIT License
314 stars 87 forks source link

When using a plain css style sheet, lightning should be configured to bundle in any @import style sheets #238

Open DanielJoyce opened 4 months ago

DanielJoyce commented 4 months ago

Given the following:

@import "../generated/leptonic/leptonic-themes";

body {
    font-family: sans-serif;
    text-align: center;
}

:root {
    --brand-color: green;
}

If it is named as main.scss then sass resolves the import and it gets bundled as one file style-file = "style/main.scss"

If it is named as main.css, then the import is not bundled by the current lightning config. style-file = "style/main.css"

DanielJoyce commented 4 months ago

Given that modern CSS supports most of the sass features, I'd rather just use plain CSS and have lightning bundle it.