构建PhoneGap应用程序时排除某些文件夹 [英] Excluding certain folders when building PhoneGap aplication

查看:26
本文介绍了构建PhoneGap应用程序时排除某些文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 Android 构建了一个 PhoneGap 应用.在 www/ 我有一些文件夹,我在开发我的应用程序时使用.我想在构建 .apk 文件时排除这些.

I have built a PhoneGap app for Android. Under www/ I have some folders, I use when developing my app. I want to exclude these ones, when building the .apk file.

我该怎么做?

推荐答案

您可以将特定于平台的文件添加到 /merges 文件夹.

You can add your platform specific files to the /merges folder.

例如,如果您有一组仅要打包用于 iOS 的文件,则可以将它们放在/merges/ios/www/my_folder/my_files.*

For example, if you have a set of files you want to be packed for iOS only, you can place them under /merges/ios/www/my_folder/my_files.*

如果您有 1 个 CSS,每个平台有 2 个变体,这也适用,您可以将它们设为:

This also works if you have 1 CSS with 2 variations for each platform, you can have them as:

/merges/android/www/global.css
/merges/ios/www/global.css

您可以在此处阅读有关合并的更多信息.

You can read more about merges here.

这篇关于构建PhoneGap应用程序时排除某些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆