rollup-plugin-svelte-blueprint Svelte Themes

Rollup Plugin Svelte Blueprint

Rollup plugin for svelte blueprint library

Rollup plugin for svelete-blueprint

This is a plugin for Rollup and the library svelete-blueprint

How to use.

Install svelte-blueprint and rollup-plugin-svelte-blueprint.

$ npm i -D svelte-blueprint rollup-plugin-svelte-blueprint

Inside the rollup.config.js you should import the plugin and modify the plugins and watch sections.

import svelteBlueprint from 'rollup-plugin-svelte-blueprint'

...

export default {
  ...

  plugins: [
    ...,
    svelteBlueprint({
      src: 'src/Components',
      dst: 'src/Docs',
      template: '../Template.svelte' // [optional] Relative to src/Docs/Pages
    }),
    ...
  ],
  watch: {
    ...,
    exclude: ['src/Docs/**']
  }
}

Notes:

  • src: Source directory for components to workon
  • dst: Destination path where the documentation files will be placed
  • template: Template to replace the default included in this library

Top categories

Loading Svelte Themes