vite-plugin-svelte-blueprint Svelte Themes

Vite Plugin Svelte Blueprint

Vite plugin for svelte-blueprint

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

Top categories

Loading Svelte Themes