Skip to content

Commit

Permalink
fix: 修复optimizeDeps.entries设置错误(应为相对于项目根的相对路径)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Oct 19, 2022
1 parent ed9141e commit 962ae3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
},
optimizeDeps: {
//因为项目中很多用到了自动引入和动态加载,所以vite首次扫描依赖项会扫描不全,这里强制扫描全局。
entries: [pathResolve('./src/**/*.{ts,tsx,vue}')],
entries: ['src/**/*.{ts,tsx,vue}'],
include: [
'element-plus/es/components/loading/style/css',
'element-plus/es/components/message/style/css',
Expand Down

0 comments on commit 962ae3b

Please sign in to comment.