Removing cordova plugins from the project

前端 未结 14 1976
情书的邮戳
情书的邮戳 2020-12-12 15:50

Somehow in my app many of the cordova plugins are installed and because of that it requires access to almost everything - from my contacts to current location ( even though

相关标签:
14条回答
  • 2020-12-12 16:48

    From the terminal (osx) I usually use

    cordova plugin -l | xargs cordova plugins rm
    

    Pipe, pipe everything!

    To expand a bit: this command will loop through the results of cordova plugin -l and feed it to cordova plugins rm.

    xargs is one of those commands that you wonder why you didn't know about before. See this tut.

    0 讨论(0)
  • 2020-12-12 16:49
    cordova platform rm android
    
    cordova plugin rm cordova-plugin-firebase
    
    cordova platform add android
    
    0 讨论(0)
提交回复
热议问题