简体   繁体   中英

Convert chrome extension into cordova mobile app

Is possible to convert a chrome extension into an apache cordova app? I want to reuse my chrome extension vue.js code to create a mobile app and avoid to rewrite all the code but I'm not sure if this is possible.

Depends on the code. If you are using a lot of the Chrome APIs that do not have direct support in the Cordova infrastructure, then you may need to rewrite those functionalities. I googled your scenario and the first thing showed up was this . I am not sure if this is relevant but you might want to take a look.

If you can integrate Vue to the Cordova codebase in such a way that you'd done in your Chrome plugin, then I think most of your Vue components can be reused with a very minimum to no modifications. However, from what I understand, codes related to the Chrome extension API will not work for Cordova. You need to redo them in Cordova way. Specially if those involve any system/OS/storage APIs.

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