playframeworksbtwebjars

Play: extract the WebJar contents to a certain path


According to the WebJars documentation

Play automatically extracts the WebJar contents and makes them available via the Assets controller.

Is there a way to change that?

Instead of /assets/lib/bootstrap/css/bootstrap.css I would need /myProject/assets/lib/bootstrap/css/bootstrap.css


Solution

  • If you just want to change the prefix in the URL route, then you can change your static asset controller's route in the conf/routes file.