vite-plugin-cachedir
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Vite Plugin CacheDir

Vite plugin to resolve the default cache directory in a monorepo.

This plugin is designed to assist in setting the appropriate cache directory when building a Vite project within a monorepo environment. It helps ensure that the correct cache directories are used, especially when working with multiple projects that share dependencies.

Install

You can install this plugin using your preferred package manager:

# With npm
npm i -D vite-plugin-cachedir

# With yarn
yarn add vite-plugin-cachedir --dev

Usage

To use the plugin, simply import it and add it to the plugins array in your Vite config file:

// vite.config.js
import pluginCacheDir from 'vite-plugin-cachedir'

export default {
  plugins: [pluginCacheDir()]
}

License

GitHub

A project by Stilearning © 2023.

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-cachedir

Weekly Downloads

112

Version

1.2.0

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • bent10