构建PhoneGap的aplication当排除某些文件夹 [英] Excluding certain folders when building PhoneGap aplication

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

问题描述

我已经为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.

我怎么能这样做?

推荐答案

您可以将您的特定平台的文件添加到 /合并文件夹中。

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

例如,如果你有一组文件要被包装为仅适用于iOS,你可以把它们下
/合并/ 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的aplication当排除某些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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