Files
root 8d78e18267 Initial commit: X-Server Mobile enterprise tool system
- Frontend: React 18 + TypeScript + Vite + Ant Design Mobile
- Backend: PHP 8.5 + Webman 2.x + MySQL + Redis
- i18n support: Chinese, English, Russian, Spanish, French
- Approval workflow engine
- Docker development environment
- Feishu integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 17:57:25 +08:00

21 lines
492 B
JavaScript

// 动态计算 rem 基准,适应桌面浏览器和真实移动设备
const setRootValue = () => {
// 桌面浏览器模拟移动端时,使用较小的基准
// 真实移动设备上,使用标准基准
return 16
}
export default {
plugins: {
'postcss-pxtorem': {
rootValue: setRootValue(),
propList: ['*'],
selectorBlackList: ['.no-rem'],
replace: true,
mediaQuery: false,
minPixelValue: 1,
exclude: /node_modules/i,
},
},
}