IBM Worklight 6.0 - 如何操作Cordova.js文件? [英] IBM Worklight 6.0 - How to manipulate Cordova.js file?
问题描述
我有同样的问题,但是当我尝试在我的Android环境中更改cordova.js文件时,文件在构建期间正在重写。
有没有办法永久删除最后一段代码?
您不能更改Cordova文件。
您看到的cordova_plugins.json404错误是无害的,不会以任何方式影响您的应用程序。 / p>
较新的Cordova版本不再显示此错误。在未来的Worklight版本中,捆绑的Cordova也将升级,这个无害的错误也不会出现在Worklight中。
正如您的问题中的链接所写: / p>
Adobe的Filip Maj在其他地方说过,这是因为(到目前为止)
部分实现的插件工具。在未来版本的Cordova,
插件工具将生成cordova_plugins.json本身。
现在,他说已经保存完全忽略404错误。
如果您真的无法忽略404错误,请改用添加虚拟cordova_plugins.json文件到您的项目中的android文件夹(yourProject\apps\yourApp\android)。
我的建议:忽略它。
I am having this same problem but when I try to change the cordova.js file within my Android environment, the file is being rewritten during build.
Is there a way to permanently delete the last block of code?
You cannot alter the Cordova files.
The "cordova_plugins.json" 404 error you're seeing is harmless and will not affect your application in any way.
Newer Cordova releases no longer show this error. In a future Worklight release the bundled Cordova will be upgraded as well and this harmless error will also not be present in Worklight.
As written in the link in your question:
Filip Maj of Adobe has said elsewhere that this is due to (so far) partially implemented plugin tooling. In future versions of Cordova, the plugin tooling will generate cordova_plugins.json itself.
For now, he has said it's save to completely ignore the 404 error.
A workaround for it if you really can't ignore the 404 error is to add a dummy cordova_plugins.json file to the android folder in your project (yourProject\apps\yourApp\android).
My suggest: ignore it.
这篇关于IBM Worklight 6.0 - 如何操作Cordova.js文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!