amazingdudu / vite-plugin-html-file-list

Lists all html files under the current project, useful for multi-page applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-plugin-html-file-list npm

Lists all html files under the current project, useful for multi-page applications.

Install

npm i vite-plugin-html-file-list -D

Usage

import htmlFileList from 'vite-plugin-html-file-list';

export default {
    plugins: [htmlFileList()]
};

Options

interface Options {
    /**
     * html file dir ,if src: '', list the html of the root directory.
     * @default 'src'
     */
    dir?: string;
}

About

Lists all html files under the current project, useful for multi-page applications


Languages

Language:TypeScript 87.0%Language:JavaScript 10.7%Language:Shell 2.3%