fix: remove first umijs in prod html

This commit is contained in:
jialin
2024-07-23 13:38:02 +08:00
parent 9c9b35ff9b
commit 50104cf276
8 changed files with 9 additions and 45 deletions
+3
View File
@@ -10,6 +10,9 @@ export default (api: IApi) => {
? info.version || info.commitId
: `dev-${info.commitId}`
);
if (env === 'production') {
$('script[src^="/js/umi"]').first?.().remove?.();
}
return $;
});
api.onStart(() => {