5

I'm using sbt-rjs with the sbt-web pipeline to minify and concatenate my javascripts in the the build process. Part of this is uglifying the files which is handled by rjs with the default uglify2 optimiser.

My questing is if I can exclude files from the uglification but still include them in the concatenated module? In particular I want to skip the already minified files, in order to shorten the build time.

Cristian Vrabie
  • 3,770
  • 5
  • 26
  • 46
  • this is a good question. did you figure out how to do this? – Ophelia Apr 28 '15 at 18:22
  • 1
    @Ophelia I couldn't find a solution. I the meantime I actually dropped the use of sbt-rjs. I now just use [sbt-uglify](https://github.com/sbt/sbt-uglify) directly which at least gives me an `includeFilter in uglify := ...`. That, together with the aggressive caching provided by the sbt-digest module actually resulted in an overall better performance than a merged js file and an improved build time. This might be a particularity of this project though, as I do change scripts very often and even a tiny edit would trigger the re-download of the huge merged file. – Cristian Vrabie Apr 30 '15 at 10:37
  • thanks, this is a very interesting idea – Ophelia Apr 30 '15 at 13:52

0 Answers0