vite.config.ts 795 B

123456789101112131415161718192021222324
  1. /*
  2. * @Author: LiZhiWei
  3. * @Date: 2025-04-09 09:05:25
  4. * @LastEditors: LiZhiWei
  5. * @LastEditTime: 2025-04-15 15:39:42
  6. * @Description:
  7. */
  8. import { defineConfig } from "vite"
  9. import path from 'path'
  10. import { createVuePlugin } from "vite-plugin-vue2"
  11. export default defineConfig({
  12. resolve: {
  13. alias: {
  14. '@': path.resolve(__dirname, 'src'),
  15. '_c': path.resolve(__dirname, 'src/components'),
  16. '_wc': path.resolve(__dirname, 'src/components/wisdom-city'),
  17. '_vc': path.resolve(__dirname, 'src/view/components'),
  18. '_conf': path.resolve(__dirname, 'src/config'),
  19. '#': path.resolve(__dirname, 'types'),
  20. },
  21. extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
  22. },
  23. plugins: [createVuePlugin()],
  24. })