Search code examples
javajavascriptcommand-line-argumentsgoogle-closure-compiler

closure-compiler wouldn't switch off suspicious code warning


I use the closure compiler to compile different js files into one short file. Admittedly this is not very effective for an already compiled file but never the less it should work. I got the command line options from the wiki page but it still shows me the warnings. Anyone got any idea what I might probably have done wrong?

java -jar googleClosureCompiler.jar --jscomp_off=suspiciousCode --js "bootstrap.min.js"

Solution

  • So I finally found out that the warning "Suspicious Code" could be silenced with the option

    --jscomp_off=uselessCode
    

    Dam well played google!