# vite-check-path-exists

> Plugin check-path-exists for bundler Vite

Latest version **1.0.11** (published 2023-03-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install vite-check-path-exists
pnpm add vite-check-path-exists
yarn add vite-check-path-exists
bun add vite-check-path-exists
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2023-03-25 |
| First published | 2023-03-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sergey Korobka |
| Maintainers | sergeykorobka |
| Keywords | vite, plugin, vite-plugin, vitejs, check, path |

## Links

- npm: https://www.npmjs.com/package/vite-check-path-exists
- npm.io page: https://npm.io/package/vite-check-path-exists

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.11 (latest) — 2023-03-25
- 1.0.10 — 2023-03-24
- 1.0.9 — 2023-03-24
- 1.0.8 — 2023-03-24
- 1.0.7 — 2023-03-24
- 1.0.6 — 2023-03-24
- 1.0.5 — 2023-03-24
- 1.0.4 — 2023-03-24
- 1.0.3 — 2023-03-24
- 1.0.2 — 2023-03-24
- 1.0.1 — 2023-03-24
- 1.0.0 — 2023-03-24

## README

<h2 align='center'><samp>vite-check-path-exists</samp></h2>

`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:

```bash
npm i -D vite-check-path-exists # yarn add -D vite-check-path-exists
```

## Usage 🚀

Add it to your plugins in `vite.config.ts`

```ts
import { defineConfig } from "vite";
import checkPathExists from "vite-check-path-exists";

export default defineConfig({
    plugins: [checkPathExists()],
});
```

## Configuration ⚙️

The following options can be provided:

-   <kbd>rootDir</kbd>

    Files will be check against this directory.

    **Default:** `src`

    ```js
    checkPathExists({ rootDir: "someDir" }),
    ```

-   <kbd>publicDir</kbd>

    Public files will be check against this directory.

    **Default:** `public`

    ```js
    checkPathExists({ publicDir: "someDir" });
    ```

---
_Source: https://npm.io/package/vite-check-path-exists · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
