oke
Lots of separate requests when using lucide-solid during devmode
This is a problem with Vite and Lucide Icons when you do named imports. This happens in tabler icons too
The doc actually has a section that calls this out: to improve Vite dev server performance, import directly from "lucide-solid/icons" folder https://lucide.dev/guide/packages/lucide-solid
4 replies
Solid routing
When you want a component to appear on every page, you should think of Layout and/or nested routing.
You can use a Layout root like this example here to put your Navbar onto every page https://docs.solidjs.com/solid-router/concepts/layouts (i.e. put your Navbar in a Layout component)
11 replies
Have anyone gotten ts particles to work in solid?
If you check the example app they have under the
apps/solid
folder in the repo, this seems like the new recommended approach https://github.com/tsparticles/solid/blob/main/apps/solid/src/App.tsx
15 replies
Post CSS with Solid Start
You can try using this plugin if you want to use PurgeCSS https://www.npmjs.com/package/@mojojoejo/vite-plugin-purgecss
11 replies
Post CSS with Solid Start
I don't believe Vite purges anything. It would be hard to detect which class and rules are actually used in your JavaScript code vs. what's not, especially when the content is dynamically generated like in JavaScript frameworks
11 replies
Post CSS with Solid Start
I believe Vite can process scss automatically https://vite.dev/guide/features#css-pre-processors
and Vite should automatically analyze CSS imports for you
11 replies