@lgfe/vite-plugin-history-fallback
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

vite-plugin-history-fallback

简介

为 vite多页应用开发提供本地调试环境插件

⚙️ 安装

npm install @lgfe/vite-plugin-history-fallback -D

🚀 使用

import { defineConfig } from 'vite';
import { historyFallbackPlugin } from '@lgfe/vite-plugin-history-fallback';

export default defineConfig({
  plugin: [
    historyFallbackPlugin({
      rewrites: [
        {
          from: /^\/pages\/.*$/,
          to: '/index.html',
        },
      ],
    }),
  ],
});

Package Sidebar

Install

npm i @lgfe/vite-plugin-history-fallback

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • luoge