@kadin
To remove Vue spec files from the Vite configuration, you need to update the exclude
option in the Vite configuration file (vite.config.js) to exclude the spec files from being processed by Vite.
Here's how you can do it:
1 2 3 4 5 6 7 8 9 10 11 |
// vite.config.js import { defineConfig } from 'vite' export default defineConfig({ // Other Vite configurations... optimizeDeps: { exclude: ['tests/**/*.spec.js'] } }) |
After making this change, Vite will exclude the spec files from being processed during the build process. This will prevent the spec files from being included in your final build output.