vite-plugin-spa-fallback
v0.1.2
Published
Vite 2 plugin that fix dev server not rewriting the path includes a dot, while keeping support for serving existing files. - [vite#2190](https://github.com/vitejs/vite/issues/2190) - [vite#2245](https://github.com/vitejs/vite/issues/2245) - [vite#2415](ht
Readme
vite-plugin-spa-fallback 
Vite 2 plugin that fix dev server not rewriting the path includes a dot, while keeping support for serving existing files.
Installation
npm install --save-dev vite-plugin-spa-fallbackUsage
Add it to vite.config.js
import spaFallbackPlugin from 'vite-plugin-spa-fallback';
export default {
plugins: [spaFallbackPlugin()]
}As long as you can rewriting all path, this should work for you.
License
Copyright (c) 2021-present, Riots
