Best way to import SVG icons into a Svelte app

The following approach has these advantages: One central point to maintain all your icons for your app Reduced network requests for fetching SVG icons Reusable icons throughout the app without having duplicate svg elements Have a dedicated Icon.svelte component setup like this: <script> export let name; export let width = “1rem”; export let height = … Read more

What is flat bundling and why is Rollup better at this than Webpack?

Edit: Rollup supports code splitting – read article Edit: Webpack now supports scope hoisting in some situations — read the blog post here We probably all have different definitions for this stuff, but I think flat bundling simply means ‘taking your modules and turning them into a single bundle’ — i.e, the ‘flat’ is redundant. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)