Skip to content

Commit 1fc86c7

Browse files
committed
chore: 把主js文件也打到js目录下面
1 parent 461b648 commit 1fc86c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export default defineConfig(configEnv => {
3131
return 'images/[name]-[hash].[ext]';
3232
}
3333

34+
if (name?.endsWith('.js')) {
35+
return 'js/[name]-[hash].js';
36+
}
37+
3438
return 'assets/[name]-[hash].[ext]';
3539
},
3640
chunkFileNames: chunkInfo => {

0 commit comments

Comments
 (0)