magic-boot/magic-boot-ui/vite.config.js
2022-03-05 10:42:10 +08:00

22 lines
469 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import viteSvgIcons from 'vite-plugin-svg-icons'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
viteSvgIcons({
iconDirs: [path.resolve(process.cwd(), 'src/icons')],
symbolId: 'mb-icon-[name]'
})
],
resolve: {
extensions: ['.vue', '.json', '.js'],
alias: {
'@': path.resolve(__dirname,'src')
}
}
})