new-ruoyi-geek/ruoyi-geek-app/vite.config.js

41 lines
1.4 KiB
JavaScript
Raw Normal View History

2025-11-15 13:07:57 +00:00
/** vite.config.js */
import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
// import autoPagesJson from './js_sdk/a-hua-auto-pages-json';
export default defineConfig({
plugins: [
uni(),
// autoPagesJson({
// pageDir:'src/pages',
// tabBar: 'tab-bar',
// entrance: 'src/pages',
// autoAormat: false,
// customTabBar: true,
// subPackages: true || ['src/pages_geek', 'src/page_mine','src/pages_NGCalTools','src/pages_qiun','src/pages_template'],
// pageConfig: {
// disableScroll: true,
// enablePullDownRefresh: false,
// "app-plus": { bounce: "none" }
// },
// tabBarPageConfig: {
// disableScroll: true,
// enablePullDownRefresh: false,
// "app-plus": { bounce: "none" }
// },
// subPackagesConfig: {
// disableScroll: true,
// enablePullDownRefresh: false,
// "app-plus": { bounce: "none" }
// }
// })
]
});
/**
* *.json 某个页面配置当然也可以手动在 pages.json 中配置
* 页面路径 pages/index/index.vue页面配置pages/index/index.json
* 配置类型PageOptions uniapp [页面配置](https://uniapp.dcloud.net.cn/collocation/pages.html#pages)`
*/