Is there a Google Closure compiler plugin for Notepad ++

I looked around the Internet, but could not find the correct answer:

Is there a Google Closure Compiler for Notepad ++ or a way to make it work with NppExec.Execute (F6 key).

+3
source share
2 answers

go and grab http://closure-compiler.googlecode.com/files/compiler-latest.zip and then unzip it. launch

java -jar compiler.jar --js $(FULL_CURRENT_PATH) \
    --compilation_level ADVANCED_OPTIMIZATIONS \
    --js_output_file $(CURRENT_DIRECTORY)\$(NAME_PART)-compiled.js

which creates a new file, which is called currently used, but has -compiled.jsat the end.

+5
source

The JSMinNpp plugin minimizes js code. This may be an alternative.

: http://jsminnpp.sf.net

+1

Source: https://habr.com/ru/post/1791658/


All Articles