Skip to content

Commit

Permalink
fix: 还原
Browse files Browse the repository at this point in the history
  • Loading branch information
haixin-fang committed Mar 14, 2024
1 parent 8f454be commit ddfb91b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,6 @@ export default defineConfig({
chunkFileNames: "static/js/[name]-[hash].js",
entryFileNames: "static/js/[name]-[hash].js",
assetFileNames: "static/[ext]/[name]-[hash].[ext]",
manualChunks: (id) => {
// 这个ID,就是所有文件的绝对路径
if (id.includes("element-plus")) {
// 因为 node_modules 中的依赖通常是不会改变的
// 所以直接单独打包出去
// 这个return 的值就是打包的名称
return "element-plus";
} else if (id.includes("lodash-es")) {
return "lodash-es";
} else if (id.includes("vue-codemirror")) {
return "vue-codemirror";
}
},
},
},
},
Expand Down

0 comments on commit ddfb91b

Please sign in to comment.