3.0.1 ā€¢ Published 5 months ago

vite-plugin-directory-index v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Directory index plugin for Vite

šŸ“‚ Directory index plugin for the Vite dev server

āš” Works with Vite \ šŸ“‚ Great for HTML files in subfolders like test/app.test.html \ šŸ–„ļø Rendered on the server only in development \ šŸ“¦ Doesn't affect your build output

Installation

npm Yarn pnpm

You can install this package using npm or your favorite npm package manager like Yarn or pnpm.

npm install --save-dev vite-plugin-directory-index

Usage

Vite

// vite.config.js
import { defineConfig } from "vite";
import directoryIndex from "vite-plugin-directory-index";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [directoryIndex()],
});

Options

This plugin respects the server.fs options. Other than that, there's no available configuration. If you have need a config option, open an Issue!

3.0.1

5 months ago

3.0.0

5 months ago

2.1.2

7 months ago

2.1.1

7 months ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago