vite.config.dev.ts 565 B

123456789101112131415161718192021222324
  1. import { mergeConfig } from 'vite';
  2. import eslint from 'vite-plugin-eslint';
  3. import baseConfig from './vite.config.base';
  4. export default mergeConfig(
  5. {
  6. mode: 'development',
  7. server: {
  8. open: true,
  9. port: 7173,
  10. fs: {
  11. strict: true,
  12. },
  13. },
  14. plugins: [
  15. eslint({
  16. cache: false,
  17. include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
  18. exclude: ['node_modules'],
  19. }),
  20. ],
  21. },
  22. baseConfig
  23. );