-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
条件编译在页面文件中无效 #190
Comments
我也遇到了类似的条件编译问题,只不过是在配置文件中。 下方 import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({
pages: [],
globalStyle: {},
tabBar: {
// #ifndef MP
blurEffect: 'light',
// #endif
// #ifdef APP || WEB
fontSize: '12px',
// #endif
},
}) 相关依赖版本:
|
我也遇到了同样的情况,支付宝和微信引入不同的插件 |
不需要条件编译吧,直接 process.env 啥的编程判断就行 |
遇到了同样问题,我的需求点在于小程序和app使用不同的启动页,两个页面layout和header自定义不同,设置type=‘home’时不能根据条件编译动态 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述问题
支付宝小程序和微信小程序有不同的页面配置项
复现
pages/index/index.vue的route如下配置:
然后执行pnpm build mp之后,index.json里还是出现了编译条件是支付宝时才出现的属性
系统信息
基础环境信息:
Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
20.16.0
pnpm
1.95.3
2.1.10
基础依赖信息:
3.4.21
5.2.8
3.0.0-4020920240930001
uni-helper依赖信息:
使用的包管理器
pnpm
核对
贡献
The text was updated successfully, but these errors were encountered: