dev.ts 414 B

123456789101112131415161718192021
  1. import type { UserConfigExport } from "@tarojs/cli"
  2. export default {
  3. logger: {
  4. quiet: false,
  5. stats: true
  6. },
  7. mini: {},
  8. h5: {
  9. devServer: {
  10. // 配置 HMR WebSocket 端口
  11. client: {
  12. progress: true,
  13. webSocketURL: {
  14. pathname: '/mini-ws',
  15. port: 443, // 指定 HMR WebSocket 端口
  16. },
  17. },
  18. }
  19. }
  20. } satisfies UserConfigExport<'webpack5'>