0.0.4 • Published 3 years ago

vite-plugin-auto-install v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-auto-install

auto install dependencies when you exec npm run dev

Install

$ npm install vite-plugin-auto-install
import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import autoInstall from "vite-plugin-auto-install";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    reactRefresh(),
    autoInstall({
      file:'package.json',
      cli:'npm',
      include:['**/main.tsx'],
      exclude: [],
    }),
  ],
});

Options

nametypeDescriptionDefault
filestringPackage config namepackage.json
cli"npm" |"cnpm" |"yarn" |"pnpm"Package manager clinpm
IncludeReadonlyArray<string |RegExp> |string |RegExp |nullInclude filenull
excludeReadonlyArray<string |RegExp> |string |RegExp |nullexclude filenull