简体   繁体   English

我应该将 www 文件夹用于cordova iOS 项目吗?

[英]Which should I use the www folder for cordova iOS project?

root/www files in the project does not work when I put it here iOS platform project/www files in running.当我把它放在这里 iOS 平台项目/www文件在运行时,项目中的root/www文件不起作用。 but Cordova build can be reset and check this folder by deleting files?但是 Cordova 构建可以通过删除文件来重置和检查这个文件夹吗?

Which is the correct folder for the project files?哪个是项目文件的正确文件夹? and how to prevent file loss during builder?以及如何在构建过程中防止文件丢失?

Thank You...谢谢你...

The correct folder for developing is the www in root.正确的开发文件夹是 root 中的 www。

If you don't want to use cordova build over and over again, you can symlink the content of this folder to the content of the platform www folder.如果您不想一遍又一遍地使用cordova build,您可以将此文件夹的内容符号链接到平台www文件夹的内容。

Or you can write a script, which is running before compiling.或者您可以编写一个脚本,该脚本在编译之前运行。 This script copies the content to the www folders.此脚本将内容复制到 www 文件夹。

Attention:注意力:

Don't copy the whole folder to the platform folders, because in the platform www are some specific scripts, depending of your OS.不要将整个文件夹复制到平台文件夹,因为在平台 www 中是一些特定的脚本,具体取决于您的操作系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM