tailwind
This commit is contained in:
parent
1405549e08
commit
c67bf28236
6 changed files with 2934 additions and 1 deletions
|
@ -3,6 +3,7 @@ gevent.monkey.patch_all()
|
|||
from os import environ
|
||||
import secrets
|
||||
from flask import *
|
||||
from flask_assets import Bundle, Environment
|
||||
from flask_caching import Cache
|
||||
from flask_limiter import Limiter
|
||||
from flask_compress import Compress
|
||||
|
@ -88,6 +89,13 @@ cache = Cache(app)
|
|||
Compress(app)
|
||||
mail = Mail(app)
|
||||
|
||||
assets = Environment(app)
|
||||
css = Bundle('src/main.css', output='dist/main.css', filters='postcss')
|
||||
|
||||
assets.register('css', css)
|
||||
css.build()
|
||||
|
||||
|
||||
@app.before_request
|
||||
def before_request():
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue