# vite-plugin-history-fallback **Repository Path**: LShere/vite-plugin-history-fallback ## Basic Information - **Project Name**: vite-plugin-history-fallback - **Description**: vite-plugin-history-fallback 用于vite本地开发mpa转发路由到对应html入口文件下 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-29 - **Last Updated**: 2023-10-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vite-plugin-history-fallback ## 简介 为 vite多页应用开发提供本地调试环境插件 ## ⚙️ 安装 ```bash npm install @lgfe/vite-plugin-history-fallback -D ``` ## 🚀 使用 ```ts import { defineConfig } from 'vite'; import { historyFallbackPlugin } from '@lgfe/vite-plugin-history-fallback'; export default defineConfig({ plugin: [ historyFallbackPlugin({ rewrites: [ { from: /^\/pages\/.*$/, to: '/index.html', }, ], }), ], }); ```