News for hackers. Stuff that matters.
Re:What's new in Svelte (Dec 2020) by tda on Thursday December 03, 2020 @09:16AM (#25288985)
Can I use svelte as an alternative to nuxt.js? I want to create a simple website where most of the content is written in markdown, that is rendered to static html (that can be hosted on e.g. netlify).

As it is kind of a hobby project, might as well learn the next hot thingg? Is Svelte suitable for these kind of applications? Some of the features of nuxt.js that i like: content module (put some markdown files in a folder and the routes, write a template and then all the html rendering etc is all taken care of) extensions for image resizing so images are resized to multiple resolutions as part of the build process, hot reloading in development

Re:What's new in Svelte (Dec 2020) by kasbah on Thursday December 03, 2020 @09:19AM (#25289017)
I believe you are looking for Sapper, which is the Next/Nuxt equivalent for Svelte. https://sapper.svelte.dev
Re:What's new in Svelte (Dec 2020) by partusman on Thursday December 03, 2020 @09:25AM (#25289078)
Be aware Sapper will never reach 1.0, and instead will be replaced by just using Svelte (with SvelteKit). https://svelte.dev/blog/whats-the-deal-with-sveltekit
Re:What's new in Svelte (Dec 2020) by tda on Thursday December 03, 2020 @09:33AM (#25289161)
Thanks! Too bad SvelteKit is still in beta, cause I don't feel inclined investing any time in Sapper now I know that that is going to be deprecated. Guess I'll have to be brave and try it out

    npm init svelte@next
Re:What's new in Svelte (Dec 2020) by yawnxyz on Thursday December 03, 2020 @08:14PM (#25297795)
seems like they're trying to make it super simple to go from Sapper to SvelteKit... here's to hoping it doesn't break too many things
Re:What's new in Svelte (Dec 2020) by Tade0 on Thursday December 03, 2020 @10:47AM (#25289971)
My "blog" (HR bait really) is exactly such a thing(using Sapper), but I had to integrate the markdown->html library by myself, I don't resize images and hit reload doesn't work.

So basically it's possible, put you have to put the thing together by yourself.