Skip to content

Commit

Permalink
Fix flask assets css
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonggan committed Oct 19, 2023
1 parent b88f5b9 commit 21b21c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from flask import Flask, render_template
from flask_assets import Bundle, Environment
from dotenv import load_dotenv
import yaml
import kube
Expand All @@ -14,12 +13,6 @@

app: Flask = Flask(__name__)

assets = Environment(app)
css = Bundle("src/main.css", output="dist/main.css")

assets.register("css", css)
css.build()

config = {}
uk = UptimeKuma()
kube = kube.Kube()
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Flask
Flask-Assets
pytailwindcss
uptime-kuma-api
python-dotenv
Expand Down
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

{% assets 'css' %}
<link rel="stylesheet" href="{{ ASSET_URL }}">
<link rel="stylesheet" href="/static/dist/main.css">
{% endassets %}
<style>
body {
Expand Down

0 comments on commit 21b21c8

Please sign in to comment.