perf: move src/types to root

This commit is contained in:
Vben
2021-02-26 20:09:24 +08:00
parent a84586e2f4
commit fcee7d4eb7
36 changed files with 195 additions and 162 deletions

View File

@@ -35,6 +35,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
find: /^\/@\//,
replacement: pathResolve('src') + '/',
},
{
// /@/xxxx => src/xxx
find: /^\/#\//,
replacement: pathResolve('types') + '/',
},
],
},
server: {