vite-plugin-support-file

1.0.6 • Public • Published

Introduction

Open your website by double-clicking the index.html locally without a file server.

Usage

npm install vite-plugin-support-file

Add to your Vite config:

// vite.config.js
import { defineConfig } from 'vite';
import supportFile from 'vite-plugin-support-file';

export default defineConfig({
  plugins: [
    supportFile()
  ]
});
npm run build

Enjoy~

How it works ?

  1. change Rollup output format to systemjs
  2. inject s.min.js into index.html

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-support-file

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

9.6 kB

Total Files

3

Last publish

Collaborators

  • bonboru93