[英]How to compress multiple js file and save to single file using YUI Compressor
I follw this links link1 and link2 to compress multiple js file and store a single file. 我将其链接link1和link2压缩为多个js文件并存储一个文件。 But its not working for me
但是它对我不起作用
I tried: 我试过了:
java -jar yuicompressor-2.4.8.jar --charset utf-8 async.js OrbitControls.js > compress.js
But, its only compress first js file( async.js ) and save to compress.js But Not Compress OrbitControls.js 但是,它仅压缩第一个js文件( async.js )并保存到compress.js中,但不压缩OrbitControls.js
I need to Compress multiple js file and save to single file , Suggest me How to do this. 我需要压缩多个js文件并保存到单个文件中,建议我如何执行此操作。
first combine the file from command windows.use type command for it in windows(same as cat command of unix) 首先将命令Windows中的文件合并。在Windows中使用type命令对其进行处理(与unix的cat命令相同)
type file1 file2 > combinedFile
After combining the file combinedFile run it through the YUI compressor. 合并文件CombinedFile后,通过YUI压缩器运行它。 How to write the proper command have a look in to this
如何编写适当的命令对此有所了解
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.