UNPKG

@svitejs/vite-plugin-svelte

Version:
35 lines (27 loc) 473 B
# @svitejs/vite-plugin-svelte ## usage ```js // vite.config.js const svelte = require('@svitejs/vite-plugin-svelte') const { defineConfig } = require('vite') module.exports = defineConfig(({ command, mode }) => { const isProduction = mode === 'production' return { plugins: [ svelte({ hot: !isProduction, emitCss: true }) ], build: { minify: isProduction } } }) ``` ## Options ```ts // TODO ``` ## License MIT