离子反应构建而无需缩小
我正在尝试运行脚本
ionic build
但是生成的构建版本始终具有 - 生产标志。因此,我的JS/TS代码被缩小,不适合调试。您知道在开发模式下构建的一种方法吗?
”为VUE工作似乎不起作用。
I am trying to run the script
ionic build
But the generated build version is always with --production flag. Thus my js/ts code is minified and not suitable for debugging. Do you know a way to build in dev mode?
The command "ionic build -- --mode development" which seems to work for Vue does not seem to work for React.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Ionic React使用创建React App 在引擎盖下。这意味着您可以使用CRA构建命令代替离子命令。
如在此GIST 中描述的“ Nofollow noreferrer”>,您需要启用CRA的cra inmabil for cra for cra for cra inspor cra inspor insif for cra formied unfactied unfact。
您可以使用命令
react-scripts构建 - - profile
来执行此操作。为了使其更容易,您可以在
package.json.json
中添加命令到scripts
喜欢:Ionic React uses Create React App under the hood. This means that you can use CRA build commands instead of Ionic.
As described in this gist, you need to enable profiling mode for CRA to get unminified output.
You can do this with the command
react-scripts build -- --profile
.To make it easier, you can add a command to
scripts
in yourpackage.json
like: