Use flask-webassets to version js/css bundle
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% block title %}JEDI{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='assets/index.css') }}">
|
||||
{% assets "css" %}
|
||||
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
|
||||
{% endassets %}
|
||||
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
|
||||
</head>
|
||||
<body class="{% if g.modalOpen %} modalOpen{% endif %}">
|
||||
@@ -32,6 +34,8 @@
|
||||
{% include 'footer.html' %}
|
||||
|
||||
{% block modal %}{% endblock %}
|
||||
<script src="{{ url_for('static', filename='assets/index.js') }}"></script>
|
||||
{% assets "js_all" %}
|
||||
<script src="{{ ASSET_URL }}"/>
|
||||
{% endassets %}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user