How to Import and Bundle CSS-files Using @import in Sapper
Mostly for my own bad memory, here is a simple way to import CSS files in Sapper, and make it part of your bundle in production using svelte-preprocess and postcss.
How to Implement Google Tag Manager in Svelte, in Functional Programming
First of all, can Google start handling our data with care. And here’s how I implemented Google Tag Manager (GTM) to a Sapper-site. The regular script from GTM gave errors in this specific Sapper setup and that was my excuse to implement it with functional programming concepts.
Jeg utviklet en informasjonsportal om flyktninger og asylsøkere. Portalen består av over 500 sider satt opp med SSG, SPA og PWA.
Accessible Routing for Sapper
On route-change, manage focus and update an ARIA Live Region with an indication of the current page.
Adding a NPM CSS library to Sapper or Routify
I’m experimenting here, but this seems like a good way to add a small CSS library from NPM for global styles to a Sapper or Routify (Svelte) app. It has few dependencies and you can benefit from hot reloading.