-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support fast github #74
Conversation
return ' https://github.com.cnpmjs.org/ant-design/ant-design-pro'; | ||
} | ||
return 'https://github.com/ant-design/ant-design-pro'; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
return `${fastGithub}/ant-design/ant-design-pro`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前面有了这个 if (fastGithub === 'github.com.cnpmjs.org') {
变量名已经被固定了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样写简单很多,不用写这么多代码。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
字符串更易读一点,搜一下就找到了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是这样的,这个文件里不关心具体的源地址,不应该耦合。
加了个packack.json 的排序 |
use fast github .