Run the command below in your terminal to install limeUI first
npm install kyy-ui --save
Import in your entry script file and register it
import KyyUI from 'kyy-ui'
import "lime-ui/lib/styles/kyy-ui.css"
Vue.use(KyyUI)
<kyy-button>click</kyy-button>
Firstly, you should install babel-plugin-component
in your project.
npm install babel-plugin-component
Configure your .babelrc
file like this
{
"plugins": [
[
"component",
{
libraryName: "kyy-ui",
styleLibrary: {
name: "styles",
// same with styleLibraryName
base: false
// if theme package has a base.css
}
}
]
]
}
The you can import component on demand, and you don't need to care about importing styles, the babel plugin will do it automaticly.
import Vue from 'vue'
import {kyyButton} from 'kyy-ui'
Vue.component('kyy-button', kyyButton)