Skip to content

Commit

Permalink
fix: frameworkName when vite dev (#12873)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni authored Dec 30, 2024
1 parent fde366a commit c4bdeb6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default function ViteHtmlPlugin(api: IApi): Plugin {
try {
// 处理通用html
const viteScripts: IOpts['scripts'] = [
api.appData.hasSrcDir ? '/src/.umi/umi.ts' : '/.umi/umi.ts',
`${api.appData.hasSrcDir ? '/src' : ''}/.${
api.service.frameworkName
}/umi.ts`,
];

const markupArgs = (await getMarkupArgs({ api })) as any;
Expand Down

0 comments on commit c4bdeb6

Please sign in to comment.