I
I
Ivan Koryukov2015-10-17 23:05:31
css
Ivan Koryukov, 2015-10-17 23:05:31

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 %}

where relative to the root of the symfony project should be the folder with css files?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Antonov, 2015-10-18
@MadridianFox

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

M
Maxim, 2015-10-18
@maxloyko

if I understand the question correctly, then in the bundle
Resources/public/ тут в css или js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question