wtr-plugin-vite
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

wtr-plugin-vite

Vite plugin for WebTestRunner

npm i wtr-plugin-vite pnpm add wtr-plugin-vite yarn add wtr-plugin-vite

Examples

# node
    # view source example/node.ts

    const { vite } = require('wtr-plugin-vite')
    
    module.exports = {
      plugins: [vite()],
    }

API

# vite(viteConfig) src/vite.ts#L8

    # viteConfig  =  {}

vite(viteConfig)  =>

    {

    # name  =  'vite-plugin'

      string

    # serverStart(any) src/vite.ts#L14

      any

      serverStart(any)  =>

        Promise<void>

# serverStop() src/vite.ts#L69

    serverStop()  =>

      Promise<void>
}

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Package Sidebar

Install

npm i wtr-plugin-vite

Weekly Downloads

15

Version

0.0.3

License

MIT

Unpacked Size

25.5 kB

Total Files

14

Last publish

Collaborators

  • stagas