Mint-ui 开发笔记

Created: May 22, 2017, 4:04 p.m. Updated: June 4, 2018, 5:35 p.m.

基本环境搭建

vue init webpack myapp
cd myapp
npm install
npm install babel-preset-es2015 --save-dev
npm install babel-plugin-component -D
npm run dev 

将 .babelrc 修改为:

{
  "presets": [
    ["es2015", { "modules": false }]
  ],
  "plugins": [["component", [
    {
      "libraryName": "mint-ui",
      "style": true
    }
  ]]]
}