ElementUI 按需引入坑爹的点记录

官网说的是这样的:

 

但实际上,应该是这样修改:

复制代码
{
  "presets": [
    ["env", {
      "targets": {
        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
      }
    }],
    "stage-2"
  ],
  "plugins": [
      "transform-vue-jsx", 
      "transform-runtime",
      ["component", {
          "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }]
   ]
}
复制代码

 

posted @   贝尔塔猫  阅读(514)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示