cordova_plugins.json文件是什么? Cordova在初始化时请求它 [英] What is the cordova_plugins.json file for? Cordova is requesting it at initialization
问题描述
我试图调试cordova_plugins.json文件用于什么?
I am trying to debug what the cordova_plugins.json file is used for?
我目前使用多个插件,我从未与此文件进行过交互。我想知道为什么cordova在初始化时对这个文件提出xhr请求。
I am using multiple plugins so far and I have never interacted with this file. I want to figure out why cordova makes an xhr request for this file at initialization.
当我看到我的控制台时,我每次测试我的应用程序时Chrome
When looking at my console I keep seeing this 404 error every time I test my app in Chrome and like to understand why this file is necessary.
推荐答案
这似乎是Cordova 2.6.0中引入的功能,至少我只是注意到在这个版本。
在这一点上,我找不到任何文档,我没有很多细节,但现在我解决了404问题,添加一个假cordova_plugins.json文件到我的项目的根。
It seems like a feature introduced in Cordova 2.6.0, at least I just noticed in this version. At this point I could not find any documentation and I don't have many details on it, but right now I solved the 404 issue adding a dummy cordova_plugins.json file to the root of my project.
由于它需要有效的json文件,我在文件中添加了以下内容:只是Cordova 2.6.0所需的虚拟文件
As it expects a valid json file I added the following content to the file: "just a dummy file required by Cordova 2.6.0"
这篇关于cordova_plugins.json文件是什么? Cordova在初始化时请求它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!