aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/assets.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-01-26 09:31:43 +0100
committerTibor Frank <tifrank@cisco.com>2022-02-24 08:11:41 +0100
commitb2cb835b34c7404b2aaee3ec30700c67537da66d (patch)
treed0a6ce077b6d927565294fcd7301fb727708cd06 /resources/tools/dash/app/pal/assets.py
parent9eebc3e59028014a8fc151575b99347d2871c097 (diff)
UTI: PoC - Dash application for Trending
- delete old dash demo Change-Id: I3e75c1dc18ee85c1826838af0343a4b779f71754 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/assets.py')
-rw-r--r--resources/tools/dash/app/pal/assets.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/resources/tools/dash/app/pal/assets.py b/resources/tools/dash/app/pal/assets.py
index 4237707734..63fac16333 100644
--- a/resources/tools/dash/app/pal/assets.py
+++ b/resources/tools/dash/app/pal/assets.py
@@ -11,7 +11,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-"""Compile static assets."""
+"""Compile static assets.
+"""
+
from flask import current_app as app
from flask_assets import Bundle
@@ -24,15 +26,17 @@ def compile_static_assets(assets):
:returns: Compiled stylesheets.
:rtype: Environment
"""
+
assets.auto_build = True
assets.debug = False
less_bundle = Bundle(
- "less/*.less",
- filters="less,cssmin",
- output="dist/css/styles.css",
- extra={"rel": "stylesheet/less"},
+ u"less/*.less",
+ filters=u"less,cssmin",
+ output=u"dist/css/styles.css",
+ extra={u"rel": u"stylesheet/less"},
)
- assets.register("less_all", less_bundle)
- if app.config["FLASK_ENV"] == "development":
+ assets.register(u"less_all", less_bundle)
+ if app.config[u"FLASK_ENV"] == u"development":
less_bundle.build()
+
return assets