sbt / sbt-rjs

RequireJs optimizer plugin for sbt-web
Other
39 stars 28 forks source link

How to perform an independent RJS optimization for a sbt subproject #72

Open adrianhurt opened 8 years ago

adrianhurt commented 8 years ago

Hi,

I was wondering if someone could help me to figure out how to configure RequireJS in my case. I have this seed template that has a root sbt project with two main subprojects: web (for users) and admin. Each subproject has it's own configuration (pipelineStages and RjsKeys.mainModule) and I currently can run and dist them as independent subprojects and they work perfectly. You can check the build.sbt and Common.scala files to see the configuration.

The problem is that I would like to be able to dist the root project as well. Then, I would need to perform the RequireJS optimization for each subproject independently, but I can't. It only happens for the root project itself, so it requires me to implement an only one build configuration as a whole project.

So then, is there any option to perform an independent RequireJS optimization for each sbt subproject?

Thanks!