LiveAtlas/vite.config.ts

29 lines
622 B
TypeScript
Raw Normal View History

2021-05-27 13:25:33 +00:00
// noinspection JSUnusedGlobalSymbols
2021-05-15 19:25:03 +00:00
import { defineConfig } from 'vite';
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
2021-05-24 15:43:13 +00:00
import svgSpritePlugin from "vite-plugin-svg-sprite-component";
import analyze from 'rollup-plugin-analyzer';
2021-05-15 19:25:03 +00:00
export default defineConfig({
2021-05-24 15:43:13 +00:00
plugins: [vue(), analyze(), svgSpritePlugin({
2021-05-15 19:25:03 +00:00
symbolId: (name) => name,
})],
2021-05-15 23:08:37 +00:00
base: './',
2021-05-15 19:25:03 +00:00
server: {
port: 8080
},
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, 'src')
}
]
},
build: {
chunkSizeWarningLimit: 600,
2021-05-15 20:31:42 +00:00
assetsDir: 'live-atlas/assets'
2021-05-15 19:25:03 +00:00
}
});