Everything in www folder is removing & getting back to initial while adding plugins in cordova from cmd

送分小仙女□ 提交于 2019-12-11 19:07:51

问题


Sometimes when I add plugins from command prompt to existing project, every file from www gets removed & www gets back to initial like a new cordova project www folder. How can I get the backup? What can I do so that this will not happen? Please help.


回答1:


You need to code in WWW which is inside your base directory . Not inside the www directory which is inside \platforms\android or \platforms\ios directory. because when you hit android build It take www base directory and push it inside plateform project



来源:https://stackoverflow.com/questions/34677271/everything-in-www-folder-is-removing-getting-back-to-initial-while-adding-plug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!