Google's closure compiler tool is a JS compiler that allows JavaScript to be downloaded and run faster. Compared with the similar compression tool Yui compressor, it not only has the most basic compression functions, but also has more powerful functions!
Enable nppexec in Notepad ++ and execute the following command:
cd D:\ClosureCompiler
java -jar D:\ClosureCompiler\compiler.jar --js $(FULL_CURRENT_PATH) --js_output_file event-compiled.js
You can save this command as closure compiler. Click "OK". If the following result is output in the console window:
CD: D: \ ClosureCompiler
Current directory: D: \ ClosureCompiler
java -jar D: \ ClosureCompiler \ compiler.jar --js D: \ work \ WOYO \ js \ event.js --js_output_file event-compiled.js
Process started >>>
It means that the current JS source file has been compressed and parsed in the ClosureCompiler folder and the new JS source file.
(Finish)