|
@@ -61,22 +61,12 @@ export default defineNuxtConfig({
|
|
overlay: false, // 关闭 HMR 警告/错误弹窗
|
|
overlay: false, // 关闭 HMR 警告/错误弹窗
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 👇 开发环境强制打成一个 chunk
|
|
|
|
- build:
|
|
|
|
- process.env.NODE_ENV === "development"
|
|
|
|
- ? {
|
|
|
|
- rollupOptions: {
|
|
|
|
- output: {
|
|
|
|
- manualChunks: () => "index.js", // 所有打进一个 chunk
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- : undefined,
|
|
|
|
- // {
|
|
|
|
- // rollupOptions: {
|
|
|
|
- // plugins: [visualizer({ open: true })],
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
|
|
+ build: {
|
|
|
|
+ rollupOptions: {
|
|
|
|
+ // 开启产物文件分析
|
|
|
|
+ // plugins: [visualizer({ open: true })],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
runtimeConfig: {},
|
|
runtimeConfig: {},
|
|
app: {
|
|
app: {
|
|
@@ -86,9 +76,4 @@ export default defineNuxtConfig({
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // plugins: ["~/plugins/vue-warn-handler.js"],
|
|
|
|
-
|
|
|
|
- build: {
|
|
|
|
- // transpile: ["element-plus"],
|
|
|
|
- },
|
|
|
|
});
|
|
});
|