@darion
To make Vite ignore a directory, you can add an entry in the vite.config.js
file or your vite.config.ts
file that specifies the path of the directory you want to ignore. Here's an example of how you can do this:
1 2 3 4 5 6 7 8 9 |
import { defineConfig } from 'vite'; export default defineConfig({ // Other Vite configurations... optimizeDeps: { exclude: ['path/to/directory'], }, }); |
By adding the directory to the exclude
option in the optimizeDeps
configuration, Vite will no longer process or bundle any files located within that directory.