DEV Community

Discussion on: What was your win this week?

Collapse
 
steveblue profile image
Stephen Belovarich

I wanted the css to be inline with the component, so I made this to at least post process the css with postcss.

npmjs.com/package/rollup-plugin-in...

Thread Thread
 
aut0poietic profile image
Jer

Nice. tagged templates are pretty awesome, though I'd never seen them until I played with lit-element. More ways to produce WC's is a great thing.

I really like the css-tied-to-component idea (in WC's and other frameworks), just don't enjoy writing CSS or HTML in JS. Probably silly of me, but I got RollUp to inline the separate CSS & HTML files in a template literal inside the final JS bundle without much fuss. Never could make webpack do it.