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

Option to put gz suffix between file name and file suffix #75

Closed oliver-brm closed 10 years ago

oliver-brm commented 10 years ago

Rather a feature request than an issue: We were facing issues configuring our web server to serve some.js.gz files with the correct content-type header. It was an easier solution to implement an option in yuicompressor-maven-plugin which puts the ".gz" suffix between the file name and the file's suffix (if gzip compression was switched on).

We have already implemented this stuff. Please tell me if you think that this is useful so we can push it upstream.

Usage is as follows:

<configuration>
    <gzip>true</gzip>
    <gzBeforeSuffix>true</gzBeforeSuffix>
</configuration>
davidB commented 10 years ago

Hi,

-1,

IMHO the plugin is the wrong place for this "workaround". You can have the same issue with other data css, json,... I'm OK to re-open the issu, if other users have same issue.

Thanks for the proposal.