trunk icon indicating copy to clipboard operation
trunk copied to clipboard

feature request: css-modules support

Open xiaoxiangmoe opened this issue 3 years ago • 3 comments

For example, vite support css modules.

import classes from './example.module.css'
document.getElementById('foo').className = classes.red

I think it will be great if trunk can support this, also.

xiaoxiangmoe avatar Sep 11 '22 14:09 xiaoxiangmoe

Are you using Yew or a front end library alongside Trunk? There's many solutions (most immature) for CSS, but the one I recommend most is Stylist.

simbleau avatar Sep 11 '22 14:09 simbleau

I'm using Yew now.

xiaoxiangmoe avatar Sep 11 '22 14:09 xiaoxiangmoe

Stylist and front end CSS solutions should be the go to, in my opinion. Pushing this onto Trunk seems like the wrong place? I'm open to different opinions.

simbleau avatar Sep 11 '22 16:09 simbleau