3 ms·
I am also just playing around with Svelte. I finally figured out a good way to do CSS - CSS variables in global CCS file, set '*' defaults based on these variab
by nilslindemann 5y ago
I am also just playing around with Svelte. I finally figured out a good way to do CSS - CSS variables in global CCS file, set '*' defaults based on these variables, change variables on parent of called component, or directly pass to component (rarely needed). That's cool, as I can avoid that ugly :global syntax.
I also figured out a working approach how to trigger state updates. Just chain store.update()'s into each other. Dunno if that is the best way, but it fucking triggers reactivity, and I do not have to think about it anymore. Now my fingers can take over.
Nice also, to have preprocessors like pug and stylus available. My folding editor doesn't support multiple types of comments in a file. With these processors, I can use '//' everywhere. And who likes to write raw HTML anyway.
- nilslindemann 5y agoP.S., also practical to have 'watch: {clearScreen: true}' in rollup.config.js.