是不是用的windows 试试 cross-env TARO_BUILD_TYPE=ui taro build --ui 我有个问题: 执行此命令后,dist h5目录下index.js 会有 多出下面内容 import Nerv from 'nervjs'; import { Router, createHistory, mountApis } from '@tarojs/router'; Taro.initPxTransform({ "designWidth": 750, "deviceRatio": { "640": 1.17, "750": 1, "828": 0.905 } }); const _taroHistory = createHistory({ mode: "hash", basename: "/", customRoutes: {}, firstPagePath: "/" }); mountApis({ "basename": "/", "customRoutes": {} }, _taroHistory); npm发布后,字体会很奇怪,没有编译成rem,显得很大 不知道有没有知道的!