24 lines
476 B
TypeScript
24 lines
476 B
TypeScript
|
import { defineConfig } from 'vite';
|
||
|
import { resolve } from 'path';
|
||
|
import vue from '@vitejs/plugin-vue';
|
||
|
import svgSpritePlugin from "vite-plugin-svg-sprite-component"
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [vue(), svgSpritePlugin({
|
||
|
symbolId: (name) => name,
|
||
|
})],
|
||
|
server: {
|
||
|
port: 8080
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: [
|
||
|
{
|
||
|
find: '@',
|
||
|
replacement: resolve(__dirname, 'src')
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
build: {
|
||
|
chunkSizeWarningLimit: 600,
|
||
|
}
|
||
|
});
|