Sencha SDK 工具/JSBuilder - 包含所有带有 * 的文件
使用 Sencha Touch 1,我必须手动创建 app.jsb3 文件(并将所有链接的 JavaScript 文件添加到该 .jsb3 文件),以便使用 jsbuilder 缩小所有文件。
有人知道允许使用通配符 (.*)(称为过滤器)以便轻松包含文件夹中的所有文件的正确语法吗?
我知道这里的文档: http://dev.sencha.com/deploy/JSBuilder2/JSB2FileFormat .txt 声明可以使用“.*” - 但我没有高兴:
"files": [
{"path": "views/", "name": "file1.js"},
{"path": "views/", "name": "file2.js"}, // currently manually adding each file
...
{"path": "views/", "name": ".*"}, // include all?
{"path": "views/.*"}, // include all?
]
文档仅显示与列出资源相关的过滤器,但不显示与列出文件相关的过滤器 - 可能就是原因!
Using Sencha Touch 1, I am having to manually create my app.jsb3 file (and add all linked JavaScript files to that .jsb3 file) in order to use jsbuilder to minify all files.
Anybody know the correct syntax to allow use of a wildcard (.*) (referred to as a Filter) in order to easily include all files in a folder?
I know the docs here: http://dev.sencha.com/deploy/JSBuilder2/JSB2FileFormat.txt
state that ".*" can be used - but I've had no joy:
"files": [
{"path": "views/", "name": "file1.js"},
{"path": "views/", "name": "file2.js"}, // currently manually adding each file
...
{"path": "views/", "name": ".*"}, // include all?
{"path": "views/.*"}, // include all?
]
The docs only show filters in relation to listing resources, but not also for listing files - may be why!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论