vite.config.dev.ts 647 B

1234567891011121314151617181920212223242526272829303132
  1. import { mergeConfig, loadEnv } from 'vite';
  2. import eslint from 'vite-plugin-eslint';
  3. import baseConfig from './vite.config.base';
  4. const env = loadEnv('development', process.cwd(), '');
  5. export default mergeConfig(
  6. {
  7. mode: 'development',
  8. server: {
  9. port: 8163,
  10. open: false,
  11. fs: {
  12. strict: true,
  13. },
  14. proxy: {
  15. '/api/': env.VUE_APP_DEV_PROXY,
  16. },
  17. hmr: {
  18. overlay: false,
  19. },
  20. },
  21. plugins: [
  22. eslint({
  23. cache: false,
  24. include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
  25. exclude: ['node_modules'],
  26. }),
  27. ],
  28. },
  29. baseConfig
  30. );