new-ruoyi-geek/ruoyi-geek-app/vite.config.js
2025-11-15 21:07:57 +08:00

41 lines
1.4 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** 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)`
*/