Search code examples
javascriptgoogle-closure-compilergoogle-closure-library

How to concatenate/combine but not compress with Closure Compressor?


I have multiple JavaScript files that are concatenated with Closure using "Scripts/**.js". I would like to build site.js and site.min.js versions.

Is there a way to concatenate but not compress/minify?


Solution

  • You can set @compilation_level WHITESPACE_ONLY but that still does more than just concatenate.

    Really, if all you want is to concatenate, have a simple script which reads each file and outputs each line into a new file. Between each file write a \n to the new file.