vite.config.ts 362 B

1234567891011
  1. import { defineConfig } from 'vite'
  2. import uni from '@dcloudio/vite-plugin-uni'
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. build: {
  6. // 开发阶段启用源码映射:https://uniapp.dcloud.net.cn/tutorial/migration-to-vue3.html#需主动开启-sourcemap
  7. sourcemap: process.env.NODE_ENV === 'development',
  8. },
  9. plugins: [uni()],
  10. })