Note: Svelte official maintenance has stopped, and there are no new updates. For those who want to get started with svelte, it can only be used as a reference. The address of the new version of SvelteKit (https://kit.svelte.dev/)
Svelte official website
Svelte Chinese Documentation | Svelte Chinese Website https://www.sveltejs.cn/
routing address
DEMO project address
Rollup tool
Hang one
Static resources cannot be loaded through import, nor can they be directly referenced. After finding and configuring rollup.config.js, it is useless.
url({
sourceDir: path.resolve(__dirname, 'src/assets/images/'),
publicPath: '/assets/images/'
}),
pit two
The official svelte has stopped updating, yes it has stopped updating, the new one is svelte kit
Hang three
No official routing, messy routing custom configuration options; svelte-spa-router
pit four
So far, svelte does not have a handy, easy-to-use, and available component library;
Pull out the big one from the dwarfs, the one below is okay at present, and the documents are also bad;
Svelte Material UI Chinese website| Svelte Material UI Chinese document is based on the Material UI component library of Svelte 3 https://sveltematerialui.cn/ To sum up, the svelte project is currently second to none in terms of speed experience, but the ecology is the biggest flaw, the official The documentation is also bad. So far, there is no mature component library, and I have to make my own wheels. The official documentation (both in Chinese and English) does not have a detailed description of the project directory structure, and so on.
The food is good, but it still needs to be carefully polished before it can be enjoyed by the guests. At present, it is still a big challenge for the front-end chefs to use svelte to cook a table of delicious meals.