untyped / sbt-plugins

SBT plugins for Javascript, Coffeescript, LESS, SASS, and Mustache compilation
73 stars 23 forks source link

New feature: GZip JS #44

Closed japgolly closed 10 years ago

japgolly commented 10 years ago

Feature Request: I think it'd be really useful to be able to instruct sbt-js to provide gzipped versions of compiled js. Specifically I mean turning src/main/javascript/xxx.js into war/xxx.js and war/xxx.js.gz.

Using Jetty's org.eclipse.jetty.servlet.DefaultServlet if abc.js is requested, abc.js.gz will be sent if it is found in the WAR. For static content this saves greatly reduces bandwidth without any cost to server-sde CPU/mem.

mdedetrich commented 10 years ago

Isn't this something that the web framework should handle, and not sbt-plugins? I would be wary of making sbt-plugins try to do to many things

japgolly commented 10 years ago

Well I was thinking it was in the same realm as JS minification, this being an additional form of minification.

I think you're right though. This isn't JS specific and is beneficial to all static content, not just JS. Ok cool, request withdrawn. :smile: