Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems hooking task into asset phase #175

Open
roti opened this issue Aug 30, 2019 · 0 comments
Open

Problems hooking task into asset phase #175

roti opened this issue Aug 30, 2019 · 0 comments

Comments

@roti
Copy link

roti commented Aug 30, 2019

I don't know if this is an issue with sbt-web, or an consequence of my lack of knowlege about sbt-web and sbt-plugin (the context is a Play 2.6 project). I apologize if the latter is the case, though I'd appreciate some help.

Essentially I'm trying to hook a task into the asset generation phase, as described here. It's sbt-webpack, which is defined as an InputTask (not a pipeline stage task).

It's dependent on the webjars, so to my knowlegde this should work:

val foo = TaskKey[Unit]("foo")
foo := { println("now running foo") }
foo in Assets := (foo in Assets).dependsOn(WebKeys.webModules in Assets).value

It does not. What I am looking for is a way to have foo run in any asset generation phase (i.e. assets, stage, dist, run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant