Skip to content

Instantly share code, notes, and snippets.

@ziyoung
Last active April 11, 2019 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziyoung/3e475406019544d5675659129c6d6253 to your computer and use it in GitHub Desktop.
Save ziyoung/3e475406019544d5675659129c6d6253 to your computer and use it in GitHub Desktop.
构建自己的 element-ui 包
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