使用Closure Compiler命令行缩小并替换原始文件 [英] Use Closure Compiler Command Line Minify and Replace Original File

查看:98
本文介绍了使用Closure Compiler命令行缩小并替换原始文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过

java -jar compiler.jar --js jj.js --js_output_file jj.js

输出文件的大小为0.

如果我不想从.min.js重命名为.js,该怎么办?

If I do not want to do a renaming from .min.js to .js, what should I do?

推荐答案

编译器不支持此功能.我相信下一个版本实际上将在覆盖文件之前失败.

The compiler doesn't not support this. I believe the next release will actually fail before overwriting the file.

这篇关于使用Closure Compiler命令行缩小并替换原始文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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