41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
|
|
|
|||
|
|
/** 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)`
|
|||
|
|
*/
|