vite-plugin-support-file-protocol
TypeScript icon, indicating that this package has built-in type declarations

1.0.3-beta.2 • Public • Published

vite-plugin-support-file-protocol

npm version npm downloads bundle JSDocs License

Introduce

Support you webpage to be readed with the file protocol file:// in your browser

How to use it

npm install -D vite-plugin-support-file-protocol

In your vite.config.ts you can use it like this:

import { defineConfig } from 'vite'
import { supportViteBuildBundleForFileProtocol } from 'vite-plugin-support-file-protocol'

export default defineConfig({
  plugins: [supportViteBuildBundleForFileProtocol()]
})

License

MIT License © 2023-PRESENT POfeiY

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-support-file-protocol

Weekly Downloads

4

Version

1.0.3-beta.2

License

MIT

Unpacked Size

6.2 kB

Total Files

8

Last publish

Collaborators

  • yuzili