基于elementui的源码,修改并打包上传npm
2018-04-11 本文已影响26人
最爱当年的我
由于需要使用elementui2.0+的功能,但是求稳定还要修改elementui里面的bug,基于elementui定制自己的源码,供我司内部使用,
1. elementui源码地址:https://github.com/ElemeFE/element (fork一份到自己的github上)
2.clone下来之后执行npm i
3.修改关于 在packages element-ui的字段替换成自己的npm 包名称 (npm不允许重复的名字上传)

4.修改types下的文件index.d.ts

5.npm run dist生成lib目录之后
6.上传npm(自行百度)
参考自https://blog.csdn.net/qq_36752632/article/details/78900296 但是写的不够详细,踩了一些坑,