Symfony app.js & app.css in public/bundles/easyadmin not loading in production environnement

Console log

Network status

Files tree

Hello ,

I can’t figure out why the app.js and app.css located in public/bundles/easyadmin can’t be loaded. In developpement environnement there is no problem, it only happens in production environnement.

I can access to the admin dashboard and use it but the UI is broken.

I use Webpack.

Thank you and have a good day

EDIT Solution :

I haphazardly found the solution,

 "scripts": {
    "auto-scripts": {
        "cache:clear": "symfony-cmd",
        "assets:install %PUBLIC_DIR%": "symfony-cmd"
    "post-install-cmd": [
        "@auto-scripts" //add this line
    "post-update-cmd": [

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 1

Your email address will not be published. Required fields are marked *



Hi, I’m having the exact same issue (the part of my website that doesn’t use easyadmin is completely fine) but easyadmin doesn’t load css nor js.
I wanted to try your solution but I already have the same parameters as you, so I was wondering if anyone else had had the same problem?