@lgfe/vite-plugin-history-fallback
v1.0.2
Published
historyFallback ability for vite application
Downloads
6
Readme
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',
},
],
}),
],
});