@minix-iot/babel-plugin-component

0.1.0 • Public • Published

@minix-iot/babel-plugin-component


按需引入组件,减小打包体积;

安装


npm i -D @minix-iot/babel-plugin-component

使用


配置.babelrc文件:

{
  "plugins": [
    ["@minix-iot/babel-plugin-component", {
      "style": "css"
    }]
  ]
}

然后就可以像下面这样按需引入组件了:

import Vue from 'vue';
import { minibar, switch } from '@minix-iot/ui';

Vue.use(minibar);
Vue.use(switch);

Readme

Keywords

Package Sidebar

Install

npm i @minix-iot/babel-plugin-component

Repository

xxxx

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.36 kB

Total Files

3

Last publish

Collaborators

  • dolphin-diving