In Dev enviroment it works perfectly, but when I switch to Prod it doesn't do anything. It looks like it doesn't attach the event listeners (when I inspect elements with Chrome, no event listener is detected where they should). Any ideas? I've cleared both caches and maybe it's important to say that I had copied
_assetic:
resource: .
type: assetic
from routing_dev.yml to routing.yml because if I don't I got the following 500 Internal Server Error:
request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "_assetic_f582f37" does not exist.")