Cordova:如何更改 HTML 源目录? [英] Cordova: How to change HTML source directory?

查看:29
本文介绍了Cordova:如何更改 HTML 源目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Cordova 3.4 与 AngularJS 结合使用.我遵循了本教程,在某些时候它要求我更改 ant.properties 文件中的 html.source.dir 和 html.asset.dir.但是,我无法在源目录中的任何位置找到此文件.如何在 Cordova 中更改 html 源目录?

I am trying to use Cordova 3.4 in conjunction with AngularJS. I followed this tutorial and at some point it asks me to alter html.source.dir and html.asset.dir in ant.properties file. However, I am not being able to find this file anywhere in my source directory. How do I change html source directory in Cordova?

问候,

翡翠同步.

推荐答案

事实证明 ant.properties 并未与新版本的 Cordova 捆绑在一起.我不得不改变 Gruntfile.js 来改变这些目录.

turns out ant.properties do not come bundled with new versions of Cordova. I had to alter Gruntfile.js to change these directories.

这篇关于Cordova:如何更改 HTML 源目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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