How To Add Svelte To Your Site?
In this episode I'm going to show you how to add Svelte to your existing site using Gulp and Webpack.
Let’s say that you want to add some interactive feature to the frontend of your site. You could of course use vanilla JS for that if it’s something simple. But if you need to build something more complicated you would probably reach for some sort of frontend framework.
Now if you want to use Vue for that, that would be pretty simple, you could just call Vue with script tags to your page and immediatley start using it. Unfortunately that can’t be said for Svelte. Because Svelte is a compiler, you would need to add a build step to your build pipeline. So in this episode I’m going to show you how to do that using Gulp and Webpack.