1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Merge pull request #6823 from yguedidi/use-webpack-encore

Use Webpack Encore
This commit is contained in:
Yassine Guedidi 2025-02-07 20:51:41 +01:00 committed by GitHub
commit 97ed7788b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 1271 additions and 256 deletions

View file

@ -17,12 +17,8 @@
<meta name="twitter:site" content="@wallabagapp" />
<meta name="twitter:title" content="{{ entry.title|e|raw }}" />
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
{% if app.debug %}
<script src="{{ asset('build/public.dev.js') }}"></script>
{% else %}
<link rel="stylesheet" href="{{ asset('build/public.css') }}">
{% endif %}
{{ encore_entry_link_tags('public') }}
</head>
<body>
<header class="block">

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