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

YUI compressor throws error on utf-8 encoded file. #6

Closed JimBarrows closed 14 years ago

JimBarrows commented 14 years ago

The YUI compressor is throwing an error on a utf-8 encoded file. It works on a windows box, but not a linux box. There is an option --charset that can be used to set the encoding, but I see no way to set that via maven. Could this be added?

davidB commented 14 years ago

I develop the plugin under linux/utf-8 whitout trouble. I'll investigate and add the charset option (but I'll not release before at least 2 weeks).

davidB commented 14 years ago

the charset is define by the encoding configuration parameter (default UTF-8)

JimBarrows commented 14 years ago

I didn't see that you could set any of the other yui-compressor options in the documentation. Thanks!

davidB commented 14 years ago

http://alchim.sourceforge.net/yuicompressor-maven-plugin/compress-mojo.html

JimBarrows commented 14 years ago

The charset param isn't there. I just found the encoding param though. Thanks!