0.0.4 â€ĸ Published 1 year ago

vite-config-checker v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vite-config-checker"

An optionated vite config checker

This package provides a tool for checking the validity of Vite configuration files (vite.config.*).

🌟 Features

  • enable / disable resolve.alias option and filters

đŸ’ŋ Installation

Local

# npm
npm install vite-config-checker --save-dev

# pnpm
pnpm add --save-dev vite-config-checker

# bum
bun add --dev vite-config-checker

Global

# npm
npm install --global vite-config-checker

# pnpm
pnpm add --global vite-config-checker

# bum
bun add --global vite-config-checker

🚀 Usage

vite-config-checker --help

USAGE vite-config-checker [OPTIONS]

OPTIONS

  --alias="true"    allow 'resolve.alias' option, if you can disable it, specify 'false'
    -c, --config    vite config file path

filtering for checking

paths option:

# allow 'path/to/foo.js' key on `resolve.alias`
vite-config-checker --alias="["/path/to/foo.js"]"

configration

You can specify vite configration, example vitest.config.ts:

vite-config-checker -c vitest.config.ts

ÂŠī¸ License

MIT

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago