0.1.2 • Published 4 years ago

vite-plugin-spa-fallback v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

vite-plugin-spa-fallback npm

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-fallback

Usage

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

MIT

Copyright (c) 2021-present, Riots