使用 JSBuilder (sencha) 压缩 JS
我想使用 sencha 的 jsbuilder 压缩我的 javascript/sencha touch 应用程序代码。我手动创建了一个 jsb3 文件并能够生成一个脚本文件。但即使我在 JSON 中指定了 "compress": true,部署版本也不会被压缩或混淆。
错误是
...
* Compress and obfuscate appName.js...
rsync: -: unknown option
rsync error: syntax or usage error (code 1) at main.c(1455) [client=3.0.9]
java.io.FileNotFoundException: /Users/NAME/PATH/TO/APP/www/nameOfBuildJSFile.js-temp-882015127581.6014 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:20)
我做错了什么?
I want to compress my javascript/sencha touch app code with jsbuilder from sencha. I created a jsb3 file by hand and was able to generate a script file. But the deployment version is not getting compressed or obfuscated, even though I specified "compress": true in the JSON.
the error is
...
* Compress and obfuscate appName.js...
rsync: -: unknown option
rsync error: syntax or usage error (code 1) at main.c(1455) [client=3.0.9]
java.io.FileNotFoundException: /Users/NAME/PATH/TO/APP/www/nameOfBuildJSFile.js-temp-882015127581.6014 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:20)
what am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论