0.2.2 • Published 3 years ago

vite-plugin-no-fallback v0.2.2

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

vite-plugin-no-fallback

What it does

Removes Vite's SPA fallback behavior, which serves index.html or a 404 any time the Vite dev server isn't able to serve something. Instead, when the vite dev server can't serve something, it merely falls through to the next middleware in your server so that it can handle it any way it wants to. This makes the vite dev server behave more like static file serving middleware, allowing later middlewares to serve any requests that the vite dev server doesn't handle.

Installation

npm i --save-dev vite-plugin-no-fallback

Usage

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { noFallback } from "vite-plugin-no-fallback";

export default defineConfig({
  plugins: [
    vue(),
    noFallback(),
  ],
});
0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago