natemoo-re / vite-plugin-svelte

Svelte plugin for http://vitejs.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@sveltejs/vite-plugin-svelte

npm version CI Chat

The official Svelte plugin for Vite.

Installation

npm install --save-dev @sveltejs/vite-plugin-svelte

Usage

// vite.config.js
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';

export default defineConfig({
	plugins: [
		svelte({
			/* plugin options */
		})
	]
});

Documentation

Packages

Package Changelog
@sveltejs/vite-plugin-svelte Changelog

Got a question? / Need help?

Join the Svelte Discord server!

Development

  • Run pnpm i to install dependencies
  • Run pnpm dev in packages/vite-plugin-svelte to autobuild plugin
  • Run pnpm dev in packages/playground/xxx to start a Vite app

Note that changes in the plugin needs restart of the Vite dev server.

Credits

License

MIT

ezoic increase your site revenue

About

Svelte plugin for http://vitejs.dev/

License:MIT License


Languages

Language:Svelte 40.9%Language:TypeScript 40.7%Language:JavaScript 16.0%Language:HTML 1.7%Language:CSS 0.7%Language:Shell 0.0%Language:SCSS 0.0%