vite-plugin-svelte-blueprint
v2.0.1
Published
Vite plugin for svelte-blueprint
Downloads
6
Readme
Vite Svelte Blueprint plugin
Vite plugin for svelte-blueprint
⚠️ Important
This plugin is only compatible with svelte-blueprint >= 2.0.0
How to:
📦 Install
Install svelte-blueprint and vite-plugin-svelte-blueprint.
$ npm i -D svelte-blueprint vite-plugin-svelte-blueprint
Inside vite.config
file you should import the plugin and modify the plugins section.
import Blueprint from 'vite-plugin-svelte-blueprint'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
Blueprint()
],
})
...
🔧 Configure
The pluing accepts up to four configuration parameters.
| Parameter | Description | Default | | -- | -- | -- | | source | Source directory of components | src/lib | | destination | Output directory for documentation files | src/Blueprint | | template | Svelte file that defines documentation structure | svelte-blueprint/templates/Blueprint.svelte | | debug | Flag to indicate if logs shouls be shown | false |