提交vue版星尘
笑笑 authored at 2023-03-11 21:32:17 笑笑 committed at 2023-03-12 19:23:12
421.00 B
Stardust
import vue from '@vitejs/plugin-vue';
import path from 'path';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
      CubeUI: path.resolve(__dirname, './src/CubeUI'),
    },
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'], // 默认后缀支持vue
  },
});