Closed japgolly closed 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
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:
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 turningsrc/main/javascript/xxx.js
intowar/xxx.js
andwar/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.