1.0.2 • Published 2 years ago

@lgfe/vite-plugin-history-fallback v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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',
        },
      ],
    }),
  ],
});
1.0.2

2 years ago

1.0.1

2 years ago