davidB / yuicompressor-maven-plugin

maven's plugin to compress (Minify / Ofuscate / Aggregate) Javascript files and CSS files using YUI Compressor
http://davidb.github.io/yuicompressor-maven-plugin/
GNU Lesser General Public License v2.1
122 stars 48 forks source link

Missing new line #65

Open jk001 opened 11 years ago

jk001 commented 11 years ago

Hi

I'm using 1.3.2 of yuicompressor-maven-plugin (http://oss.sonatype.org/content/groups/public) in direct comparison to calling the yuicompressor jar

"java -jar target/tools/yuicompressor-2.4.7.jar --charset UTF-8 [infile]-o [outfile]"

when I diff the result of the js files I get "\ No newline at end of file". Any suggestions/workarounds?

Thanks Joe.

davidB commented 11 years ago

Sorry, I don't understand the issue. Which files doesn'thave "newline at end of file" ? both, the one generated by the plugin or from commandline. Why the missing new line is an issue ?

jk001 commented 11 years ago
  1. The plugin generated does not create the new line
  2. The assumption was that I should get the same exact output as the command line run of the yuicompressor.jar
  3. The issue only arises when running diffs. I believe this becomes more of an issue in some source control systems like git, when doing diffs.