vite-plugin-cachedir
v1.2.0
Published
Resolves default cache directory in monorepo
Downloads
374
Readme
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
A project by Stilearning © 2023.