Don't load js for nothing in prod

This commit is contained in:
Thomas Citharel 2017-06-22 14:55:49 +02:00
parent 77255d6688
commit 151f45db0e

View file

@ -14,11 +14,12 @@
<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 not app.debug %}
{% if app.debug %}
<script src="{{ asset('bundles/wallabagcore/public.dev.js') }}"></script>
{% else %}
<link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
{% endif %}
<script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
</head>
<body>
<header>