Reputation: 892
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
Reputation: 5468
The compile has the capability but is isn't exposed:
https://github.com/google/closure-compiler/issues/580
Upvotes: 1
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