This template should help get you started developing with Svelte in Vite.
npm create vite@latest
-> kw-app
select Svelte
select JavaScript
cd kw-app
npm install
npm run dev
in app.svelte ->
<script>
let count = $state(0);
</script>
<button onclick={() => count++}>
clicks: {count}
</button>
legacy -> runes mode !!
npx svelte-add@latest tailwindcss
npm i
npm run dev
tailwind.config.js ??? ->
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}",
'./pages/**/*.{html,js}',
'./components/**/*.{html,js}',
],
theme: {
extend: {}
},
plugins: []
};