29 lines
460 B
Markdown
29 lines
460 B
Markdown
|
# @sveltejs/vite-plugin-svelte
|
||
|
|
||
|
The official [Svelte](https://svelte.dev) plugin for [Vite](https://vitejs.dev).
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
// vite.config.js
|
||
|
import { defineConfig } from 'vite';
|
||
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
svelte({
|
||
|
/* plugin options */
|
||
|
})
|
||
|
]
|
||
|
});
|
||
|
```
|
||
|
|
||
|
## Documentation
|
||
|
|
||
|
- [Plugin options](../../docs/config.md)
|
||
|
- [FAQ](../../docs/faq.md)
|
||
|
|
||
|
## License
|
||
|
|
||
|
[MIT](./LICENSE)
|