LiveAtlas/vite.config.ts
2021-05-16 00:08:37 +01:00

26 lines
525 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,
})],
base: './',
server: {
port: 8080
},
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, 'src')
}
]
},
build: {
chunkSizeWarningLimit: 600,
assetsDir: 'live-atlas/assets'
}
});