Search code examples
playframework-2.0packagingplayframework-2.4

Playframework 2 - Avoid aggregation of public assets when building dist


When building application with dist, is there a way to avoid aggregation of assets in a jar and let these assets in a root "public" folder ?


Solution

  • The static assets are packaged in a my-app.assets.jar.

    I ended up untaring this jar to the correct location :

    jar xf my-app.assets.jar
    mv ./public ./target_location
    

    This way I can let the frontend server manage these assets (adding the good caching headers, gzipping...)