Ionic CLI linked to react-scripts

Hi all,

I see ionic CLI is linked to react-scripts (e.g., react-scripts build/serve). I’m using this for web app and mobile app.

I want to override webpack configuration using craco (https://github.com/gsoft-inc/craco) (e.g., craco build).

How can this be achieved or any other alternate solutions possible to use for both web / mobile builds/run/other commands. ?

Thanks,
Alex

It’s not mandatory to use the Ionic CLI, it’s a useful tool but if you want to write your own custom set up there’s nothing stopping you. Building for the web is no different from regular React apps. Building for Android and iOS can be done using the Capacitor CLI directly.