简体   繁体   中英

Ionic 4 project having both cordova and capacitor

I am trying an Ionic project and I am happy with the Cordova community plugins currently available. Since my app is already using the Cordova is it okay to try out the capacitor and will it crash existing build files or have any mismatches.

You can add Capacitor to an existing Cordova project without fear.

If you do npx cap add android , Capacitor will create an android folder where it will put the Android native project.

If you do npx cap add ios , Capacitor will create an ios folder where it will put the iOS native project.

Both of them will detect the installed Cordova plugins and make the necessary operations to make them work in the Capacitor project (if they are compatible, not all are)

The Cordova native projects are inside platforms folder, so there is no risk of Capacitor breaking them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM