Answer the question
In order to leave comments, you need to log in
Where should js and css be in Symfony?
The official documentation gives an example
{% stylesheets 'bundles/app/css/*' filter='cssrewrite' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
Answer the question
In order to leave comments, you need to log in
You have the option to store them in both Resources/public/ and /web/ at your discretion.
The best practice for storing statics is the /web/ directory - source link symfony.com/doc/current/best_practices/web-assets.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question