vite.config.js 594 Bytes
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  base: './',
  assetsInclude: ['**/*.xlsx', '**/*.xls', '**/*.csv'],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@use "@/styles/variables.scss" as *;`
      }
    }
  },
  server: {
    host: '0.0.0.0',
    port: 8080,
    proxy: {
      '/zhijian-trial': {
        target: 'https://testznzl.lgyzpt.com',
        changeOrigin: true,
        secure: false,
        rewrite: (path) => path
      }
    }
  }
})