myFavShrimp / turf

Macro based compile-time SCSS transpilation, CSS minification, and class name uniquification toolchain inspired by CSS modules.
MIT License
50 stars 2 forks source link

No css when using class_name_template #5

Closed beckend closed 1 year ago

beckend commented 1 year ago

Cargo.toml

[package.metadata.turf]
minify = true
class_name_template = "<original_name>--<id>"

Result:

no css

There is a space, and then no CSS from that class is applied.

scss file:

.root {
  position: relative;
}

.imageTop {
  height: auto;
  width: 100%;
}
beckend commented 1 year ago

Actually I just missed:

<style>{STYLE_SHEET}</style>