2021-05-24 13:25:48 +00:00
|
|
|
import { defineConfig } from 'vite';
|
2022-07-07 18:12:57 +00:00
|
|
|
import vue from '@vitejs/plugin-vue2';
|
2021-11-14 10:50:33 +00:00
|
|
|
import { resolve } from 'path';
|
2021-05-24 13:25:48 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2022-07-07 18:12:57 +00:00
|
|
|
plugins: [vue()],
|
2021-05-24 13:25:48 +00:00
|
|
|
resolve: {
|
2022-10-30 13:05:14 +00:00
|
|
|
alias: [
|
|
|
|
{
|
|
|
|
find: '@',
|
|
|
|
replacement: resolve(__dirname, 'src'),
|
|
|
|
},
|
|
|
|
],
|
2021-05-24 13:25:48 +00:00
|
|
|
},
|
|
|
|
build: {
|
|
|
|
chunkSizeWarningLimit: 700, // Default is 500
|
2022-02-05 19:13:18 +00:00
|
|
|
sourcemap: true,
|
2021-05-24 13:25:48 +00:00
|
|
|
},
|
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
scss: {
|
2021-11-14 10:50:33 +00:00
|
|
|
additionalData: '@import "@/styles/_variables.scss";',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-02-05 19:13:18 +00:00
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
'/api': {
|
|
|
|
target: 'http://127.0.0.1:8080',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-05-24 13:25:48 +00:00
|
|
|
});
|