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:
commit
97ed7788b4
18 changed files with 1271 additions and 256 deletions
|
@ -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 }}…" />
|
||||
{% 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">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue