1、按需引入 1. 借助 babel-plugin-component,我們可以只引入需要的組件,以達(dá)到減小項(xiàng)目體積的目的: 1 npminstallbabel-plugin-component -D 2. 更改.babelrc文件 1 2 3 4 5 6 7 8 9 "plugins": [ [ "component", { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" } ] ] 當(dāng)然這...
www.dbjr.com.cn/article/1772...htm 2025-5-31