@turbo-stoplight/vite-plugin
v0.2.1
Published
A Vite plugin tailored for Turbo Stoplight integration, automatically notifying a stoplight server after the first build run in persistent tasks.
Maintainers
Readme
@turbo-stoplight/vite-plugin
A Vite plugin for integrating Stoplight Elements API documentation into your Vite-powered applications.
Installation
# npm
npm install @turbo-stoplight/vite-plugin --save-dev
# yarn
yarn add @turbo-stoplight/vite-plugin --dev
# pnpm
pnpm add @turbo-stoplight/vite-plugin -DUsage
Add the plugin to your vite.config.js or vite.config.ts file:
import { defineConfig } from 'vite'
import turboStoplight from '@turbo-stoplight/vite-plugin'
export default defineConfig({
plugins: [
turboStoplight({
port: 5005
})
]
})Configuration
| Option | Type | Description | Default |
|--------|------|-------------|---------|
| port | number | TCP port in which @turbo-stoplight/server is running | Required |
License
This project is licensed under the MIT License - see the LICENSE file for details.
