Removing cordova plugins from the project

前端 未结 14 1974
情书的邮戳
情书的邮戳 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.

提交回复
热议问题