1.0.11 • Published 1 year ago

vite-check-path-exists v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

vite-check-path-exists - this is a plugin for Vite bundler that detects the presence of files and folders referenced by HTML code. If the file or folder does not exist, the application displays a warning about the missing file or folder.

Installation 💿

Install the package as a development dependency:

npm i -D vite-check-path-exists # yarn add -D vite-check-path-exists

Usage 🚀

Add it to your plugins in vite.config.ts

import { defineConfig } from "vite";
import checkPathExists from "vite-check-path-exists";

export default defineConfig({
    plugins: [checkPathExists()],
});

Configuration ⚙️

The following options can be provided:

  • rootDir

    Files will be check against this directory.

    Default: src

    checkPathExists({ rootDir: "someDir" }),
  • publicDir

    Public files will be check against this directory.

    Default: public

    checkPathExists({ publicDir: "someDir" });
1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago