https://github.com/chenbimo/yibase
基于yite-cli + vue3 的基础项目模板
https://github.com/chenbimo/yibase
Last synced: 4 months ago
JSON representation
基于yite-cli + vue3 的基础项目模板
- Host: GitHub
- URL: https://github.com/chenbimo/yibase
- Owner: chenbimo
- License: apache-2.0
- Created: 2024-08-02T13:35:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T17:03:23.000Z (over 1 year ago)
- Last Synced: 2025-10-23T13:54:13.443Z (8 months ago)
- Language: Vue
- Size: 460 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## yibase - (yite-cli + vue3)基础模板
基于 yite-cli驱动的 vite + vue3 项目基础开发模板
### 文档教程
请前往笔者网站 [https://chensuiyi.me](https://chensuiyi.me) 查看 `yite-cli` 的使用文档。
### 自动导入
arco-design-vue
需要安装好以下依赖
- @arco-design/web-vue
- @arco-plugins/vite-vue
```javascript
// yite.config.js 配置文件
import { vitePluginForArco } from '@arco-plugins/vite-vue';
export const yiteConfig = {
devtool: false,
// 自动导入解析
autoImport: {
resolvers: [
{
name: 'ArcoResolver',
options: {}
}
],
imports: [
{
'@arco-design/web-vue': [
//
'Message',
'Modal',
'Notification',
'Drawer'
]
}
]
},
// 自动组件解析
autoComponent: {
resolvers: [
{
name: 'ArcoResolver',
options: {
sideEffect: true
}
}
]
},
// webpack 配置
viteConfig: {
plugins: [
vitePluginForArco({
style: 'css'
})
],
optimizeDeps: {
include: [
//
'lodash-es',
'petite-vue-i18n',
'axios',
'@arco-design/web-vue'
]
}
}
};
```
element-plus
需要安装好以下依赖
- element-plus
```javascript
// yite.config.js 配置文件
export const yiteConfig = {
devtool: false,
// 自动导入解析
autoImport: {
resolvers: [
{
name: 'ElementPlusResolver',
options: {}
}
]
},
// 自动组件解析
autoComponent: {
resolvers: [
{
name: 'ElementPlusResolver',
options: {}
}
]
},
// webpack 配置
viteConfig: {
optimizeDeps: {
include: [
//
'lodash-es',
'petite-vue-i18n',
'axios',
'element-plus',
'element-plus/es'
]
}
}
};
```