vite

reload优化

预构建

    optimizeDeps: {
      exclude: ["@jhlc/utils", "@jhlc/types", "pdfjs-dist", "echarts", "dayjs"]
    },

生产环境去掉console log和debugger

esbuild: {
  drop: ["debugger"],
  pure: ["console.log"]
}
posted @ 2024-12-19 09:06  fight139  阅读(0)  评论(0编辑  收藏  举报