Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
fix: ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Feb 19, 2020
1 parent 2bf1e60 commit 6190792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/umi/src/plugins/umiAlias.ts
Expand Up @@ -2,7 +2,9 @@ import { IApi } from '@umijs/types';

export default (api: IApi) => {
api.chainWebpack(memo => {
memo.resolve.alias.set('umi', process.env.UMI_DIR);
if (process.env.UMI_DIR) {
memo.resolve.alias.set('umi', process.env.UMI_DIR);
}
return memo;
});
};

0 comments on commit 6190792

Please sign in to comment.