| 1234567891011121314151617181920212223242526272829303132 |
- import { defineConfig } from 'vite'
- import uni from '@dcloudio/vite-plugin-uni'
- import { resolve } from 'node:path'
- export default defineConfig({
- plugins: [uni()],
- transpileDependencies: ['uview-plus'],
- css: {
- preprocessorOptions: {
- scss: {
- silenceDeprecations: ['legacy-js-api', 'color-functions', 'import']
- }
- }
- },
- resolve: {
- dedupe: ['vue', 'pinia'],
- alias: {
- '@': resolve(__dirname, 'src')
- }
- },
- server: {
- port: 9010,
- host: '0.0.0.0',
- proxy: {
- '/mobile': {
- target: process.env.VITE_DEV_API_TARGET || 'http://127.0.0.1:8086',
- changeOrigin: true,
- secure: false
- }
- }
- }
- })
|