Getting started
SvelteKit をお使いいただくことをおすすめします。ほとんどの用途でお使いいただけます。これは Svelte チームによるオフィシャルなアプリケーションフレームワークで、Viteを活用しています。新しいプロジェクトを作成するには:
npx sv create myapp
cd myapp
npm install
npm run devまだ Svelte についてよく知らなくても心配いりません! SvelteKit が提供する便利な機能等は一旦無視して、後から学び始めても問題ありません。
SvelteKit の代替手段
You can also use Svelte directly with Vite via vite-plugin-svelte by running npm create vite@latest and selecting the svelte option (or, if working with an existing project, adding the plugin to your vite.config.js file). With this, npm run build will generate HTML, JS, and CSS files inside the dist directory. In most cases, you will probably need to choose a routing library as well.
Vite は single page apps (SPA) をビルドするためよくスタンドアロンモードで使用されますが、SPA は SvelteKit でも構築できます。
他のバンドラー向けのプラグインもありますが、Viteをお勧めします。
エディタツール
The Svelte team maintains a VS Code extension, and there are integrations with various other editors and tools as well.
You can also check your code from the command line using npx sv check.
サポートを受ける
Discord チャットルームで気軽に質問してください!また、Stack Overflow でも回答を見つけることができます。
Edit this page on GitHub llms.txt