-2

Google closure compiler removes all line feeds in advance mode. The PRETTY_PRINT option format the output again and PRINT_INPUT_DELIMITER does nothing.

Is there any way to force it to keep all line feeds exactly like the source JS file so it's possible to trace errors easier?

Ali
  • 21,572
  • 15
  • 83
  • 95
  • 1
    I think you really should be asking how to debug compiled javascript: http://stackoverflow.com/questions/14147479/debugging-closure-compiler-compiled-javascript/14147795#14147795 – Chad Killingsworth Mar 10 '16 at 19:12
  • @ChadKillingsworth thank you for your hint, but I would see this as an option! – Ali Mar 10 '16 at 22:10

1 Answers1

1

I don't think closure compiler does raw concatenation. But Closure-annotated code can just be executed directly in the browser - I usually set up my server to serve the raw files concatenated together.

mhansen
  • 1,102
  • 1
  • 12
  • 18