mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-15 21:41:06 +00:00
Don't load js for nothing in prod
This commit is contained in:
parent
77255d6688
commit
151f45db0e
1 changed files with 3 additions and 2 deletions
|
@ -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 }}…" />
|
||||
{% 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>
|
||||
|
|
Loading…
Reference in a new issue