vue project
yarn install or npm install or cnpm install
npm run dev
npm run build
module.exports = {
"presets": ["@vue/app"],
"plugins": [
[
"import",
{
"libraryName": "bobi-ui",//组件库名称
"camel2DashComponentName": false,//关闭驼峰自动转链式
"camel2UnderlineComponentName": false,//关闭蛇形自动转链式
"style": (name) =>{
const cssName = name.split('/')[2];
return `bobi-ui/lib/style/${cssName}.css`
}
}
],
]
}