vite-plugin-directory-index

3.0.1Β β€’Β PublicΒ β€’Β Published

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!

Package Sidebar

Install

npm i vite-plugin-directory-index

Weekly Downloads

4

Version

3.0.1

License

MIT

Unpacked Size

16 kB

Total Files

4

Last publish

Collaborators

  • jcbhmr