Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google closure compiler 同一文件上的闭包编译器输出不起作用_Google Closure Compiler_Google Closure_Google Closure Library - Fatal编程技术网

Google closure compiler 同一文件上的闭包编译器输出不起作用

Google closure compiler 同一文件上的闭包编译器输出不起作用,google-closure-compiler,google-closure,google-closure-library,Google Closure Compiler,Google Closure,Google Closure Library,我试图在生成时用编译版本覆盖源文件 java -jar compiler.jar --js test.js --js_output_file test.js 上面的命令成功,但test.js的内容被删除。 如果我输出到另一个文件,它就会工作 我应该怎么做才能使它用minified覆盖同一个文件 版本?尝试: java -jar compiler.jar --js test.js > test2.js; mv test2.js test.js 这是可行的,但我想我可以做到,没有mv

我试图在生成时用编译版本覆盖源文件

java -jar compiler.jar --js test.js --js_output_file test.js 
上面的命令成功,但test.js的内容被删除。 如果我输出到另一个文件,它就会工作

我应该怎么做才能使它用minified覆盖同一个文件 版本?

尝试:

java -jar compiler.jar --js test.js > test2.js; mv test2.js test.js

这是可行的,但我想我可以做到,没有mv