2025-03-24 15:01:39 +08:00
|
|
|
import {defineConfig} from 'vite';
|
|
|
|
|
import uni from '@dcloudio/vite-plugin-uni';
|
2025-06-10 14:04:16 +08:00
|
|
|
import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
|
2025-05-07 10:49:08 +08:00
|
|
|
import tailwindcss from '@tailwindcss/postcss'
|
2025-03-24 15:01:39 +08:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2025-05-21 15:45:10 +08:00
|
|
|
plugins: [
|
|
|
|
|
uni.default({
|
|
|
|
|
script: {
|
|
|
|
|
defineModel: true,
|
|
|
|
|
}
|
|
|
|
|
}),
|
2025-06-26 16:27:22 +08:00
|
|
|
// UnifiedViteWeappTailwindcssPlugin({
|
|
|
|
|
// rem2rpx: true,
|
|
|
|
|
// })
|
2025-05-21 15:45:10 +08:00
|
|
|
],
|
|
|
|
|
css: {
|
2025-05-07 10:49:08 +08:00
|
|
|
postcss: {
|
2025-05-08 19:54:38 +08:00
|
|
|
plugins: [tailwindcss()]
|
2025-05-21 19:25:23 +08:00
|
|
|
}
|
2025-05-08 19:54:38 +08:00
|
|
|
}, server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/baseApi': {
|
|
|
|
|
target: 'http://192.168.1.105', changeOrigin: true, rewrite: (path) => path.replace(/^\/baseApi/, ''),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-24 15:01:39 +08:00
|
|
|
})
|