Use Webpack Encore

This commit is contained in:
Yassine Guedidi
2023-08-10 01:10:54 +01:00
parent 04e757dcc8
commit f261247766
18 changed files with 1271 additions and 256 deletions

View File

@ -2,14 +2,14 @@
{% block css %}
{{ parent() }}
{% if not app.debug %}
<link rel="stylesheet" href="{{ asset('build/main.css') }}">
{% endif %}
{{ encore_entry_link_tags('main') }}
{% endblock %}
{% block scripts %}
{{ parent() }}
<script src="{{ asset('build/main' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
{{ encore_entry_script_tags('main') }}
{% endblock %}
{% block header %}