- In
main-prod.js
, comment outelement-ui
the code loaded on demand - In
index.html
the header area,element-ui
the js and css styles loaded through CDN :
<!-- element-ui 的样式表文件 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
<!-- element-ui 的 js 文件 -->
<script src="https://cdn.staticfile.org/element-ui/2.8.2/index.js"></script>