mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 05:01:58 +00:00
29 lines
766 B
Python
29 lines
766 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020 TUGRAZ.
|
|
#
|
|
# invenio-theme-tugraz is free software; you can redistribute it and/or modify it
|
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
|
|
"""JS/CSS Webpack bundles for theme."""
|
|
|
|
from flask_webpackext import WebpackBundle
|
|
from flask import current_app
|
|
|
|
def theme():
|
|
"""Returns module's webpack bundle.
|
|
This is a callable function in order to lazy load `current_app`
|
|
and avoid working outside application context.
|
|
"""
|
|
return WebpackBundle(
|
|
__name__,
|
|
'assets',
|
|
entry={
|
|
# TODO:
|
|
#'invenio-theme-tugraz-js': './js/invenio_tugraz_theme/tugraz.js',
|
|
},
|
|
dependencies={
|
|
'jquery': '3.1.0'
|
|
}
|
|
)
|