ionic-team / ionic-team/vscode-ionic

how to customize Run command

Đang mở
#232 1 bình luận 0 reaction 1 người được giao Được @damiant nhận Xem trên GitHub
enhancement fixed in webnative.dev
Ngôn ngữ chính
TypeScript
Star
15
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

When I press Run -> iOS for example I get this command running:

![Image](https://github.com/user-attachments/assets/130cf434-77ec-403e-a8a3-cedd20945398)

`pnpm exec pnpm build && pnpm exec cap copy ios && pnpm exec cap run ios --target=9AA1BC5C-79D1-4AFD-8360-7327F7B11D7A --live-reload --port=8100 --host=192.168.1.29 & pnpm exec vite --no-open --host=192.168.1.29 --port=8100`

Which effectively runs `build` command defined in `package.json`.

How can I run `run-build` command defined in `package.json` instead when I press any of the `Run` buttons?
I just want to set `--mode development` flag for Vite when I use `Run` buttons. Or I would like to set some env var, if thats is easier to achieve.

I believe I can override `build` command, but that will override it for the Project -> Build button as well.

Thank you

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.