Play: extract the WebJar contents to a certain path

184 Views Asked by At

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

1

There are 1 best solutions below

1
On BEST ANSWER

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.