Tuesday, 11 April 2017

How to import element UI with vuejs

Here is the full code: https://github.com/kenpeter/osmosis_drive_front

What I want to do is use element UI for my project. I follow this quick guide. There is a babelrc setting in it. I have difficult time to merge my babelrc with this one below. Anyone know how to merge these two babelrc and make Element UI working with Vuejs?

My babelrc:

{
  "presets": [
    "es2015",
    "stage-2"
  ],
  "plugins": [
    "transform-runtime"
  ],
  "comments": false
}

Element UI babelrc

{
  "presets": [
    ["es2015", { "modules": false }]
  ],
  "plugins": [["component", [
    {
      "libraryName": "element-ui",
      "styleLibraryName": "theme-default"
    }
  ]]]
}



via kenpeter

No comments:

Post a Comment