25 lines
511 B
TypeScript
25 lines
511 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,
|
|
assetsDir: 'live-atlas/assets'
|
|
}
|
|
}); |