Alex
Alex

Reputation: 892

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?

Upvotes: 1

Views: 136

Answers (2)

John
John

Reputation: 5468

The compile has the capability but is isn't exposed:

https://github.com/google/closure-compiler/issues/580

Upvotes: 1

Josh Horowitz
Josh Horowitz

Reputation: 665

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.

Upvotes: 2

Related Questions