Skip to content

Commit

Permalink
chore: improve devTool disable timing
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Aug 30, 2023
1 parent 4281d05 commit 9e8bd64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/preset-umi/src/features/devTool/devTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const devToolAppDist = join(__dirname, '../../../devToolAppDist');
const assetsDir = join(__dirname, '../../../assets');

export default (api: IApi) => {
if (process.env.OKAM) return;

api.addBeforeMiddlewares(async () => {
if (process.env.OKAM) return [];
// get loading html
const $ = await api.applyPlugins<typeof cheerio>({
key: 'modifyDevToolLoadingHTML',
Expand Down

0 comments on commit 9e8bd64

Please sign in to comment.