@storylite/vite-plugin
v0.15.0
Published
A lightweight alternative to StoryBook. This package contains the Vite plugin.
Downloads
4,189
Readme
@storylite/vite-plugin
A Vite plugin to integrate StoryLite with Vite.
Installation
npm i -D @storylite/vite-plugin
Usage
// vite.config.ts
/// <reference types="vite/client" />
import storylite from '@storylite/vite-plugin'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
storylite({
stories: 'stories/**/*.stories.tsx', // should be relative to process.cwd()
}),
],
})