mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
35 lines
683 B
JavaScript
35 lines
683 B
JavaScript
import { defineConfig } from 'vite';
|
|
import createVuePlugin from '@vitejs/plugin-vue';
|
|
import { resolve } from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [createVuePlugin({})],
|
|
resolve: {
|
|
dedupe: ['vue'],
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 700, // Default is 500
|
|
sourcemap: true,
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: '@import "@/styles/_variables.scss";',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
port: 3000,
|
|
},
|
|
});
|