JMC
JMC

Reputation: 393

Sbt-concat support multiple bundle?

I am using sbt-concat to create bundles for JS in my application. However, it does not seem to support creating multiple bundles.

In my application, I would like to create a base level js for global use. Then I also want to create a components bundle which will be used on certain pages.

Is this something sbt-concat can do?

Upvotes: 4

Views: 200

Answers (1)

johanandren
johanandren

Reputation: 11479

No it does not, but you should pretty easily be able to change it into something that does, or just create your own plugin that does.

This is actually the entire codebase that is the sbt-concat plugin (64 lines including whitespace and comments): https://github.com/mariussoutier/sbt-concat/blob/master/src/main/scala/com/mariussoutier/sbt/ConcatPlugin.scala

Upvotes: 2

Related Questions