-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?

2

1 Answer 1

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.

1
  • Closure-compiler is a compiler. Line feeds aren't represented in the syntax tree - preserving them isn't ever going to be an option. Commented Mar 10, 2016 at 22:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.