Last active
April 11, 2019 06:48
-
-
Save ziyoung/3e475406019544d5675659129c6d6253 to your computer and use it in GitHub Desktop.
构建自己的 element-ui 包
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -ex | |
# npm 也支持 git 仓库的,你也可以不打包 | |
git clone --branch=dev --depth=1 https://github.com/ElemeFE/element.git | |
cd element && yarn | |
npm run dist && npm run pack | |
# 注意这里的 tar 包,把这个包上传到某个地方 | |
find . -name element-ui*\.tgz | |
# 修改 package.json 中的 element-ui 依赖 | |
# "element-ui": "https://example.com/element-ui.xxx.tgz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment