Skip to content

Commit fea90b9

Browse files
committed
fix: 修复vite配置文件报错
1 parent c637748 commit fea90b9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

vite.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { createViteProxy, getBuildTime } from './build/config';
77
import { setupVitePlugins } from './build/plugins';
88

99
// https://vitejs.dev/config/
10-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
11-
// @ts-ignore
1210
export default defineConfig(configEnv => {
1311
const viteEnv = loadEnv(configEnv.mode, process.cwd()) as unknown as Env.ImportMeta;
1412

@@ -39,8 +37,6 @@ export default defineConfig(configEnv => {
3937
// 检查文件路径,如果是 pages 目录下的文件,则修改文件名和路径
4038
const filePath = chunkInfo.facadeModuleId;
4139

42-
console.log(chunkInfo.name, 'filePath');
43-
4440
if (filePath) {
4541
// 提取文件的父文件夹作为文件名
4642
if (filePath.includes('/src/pages/')) {
@@ -94,9 +90,6 @@ export default defineConfig(configEnv => {
9490
}
9591
},
9692
server: {
97-
fs: {
98-
cachedChecks: false
99-
},
10093
host: '0.0.0.0',
10194
open: true,
10295
port: 9527,

0 commit comments

Comments
 (0)