mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-01 08:29:12 +02:00
fix CSS bundle order issue.
a final fix for https://github.com/lnbits/lnbits/issues/99
This commit is contained in:
parent
32d75f7a60
commit
11e04e4314
@ -75,7 +75,18 @@ def get_js_vendored(prefer_minified: bool = False) -> List[str]:
|
||||
|
||||
|
||||
def get_css_vendored(prefer_minified: bool = False) -> List[str]:
|
||||
return get_vendored(".css", prefer_minified)
|
||||
paths = get_vendored(".css", prefer_minified)
|
||||
|
||||
def sorter(key: str):
|
||||
if "quasar@" in key:
|
||||
return 1
|
||||
if "vue@" in key:
|
||||
return 2
|
||||
if "chart.js@" in key:
|
||||
return 100
|
||||
return 9
|
||||
|
||||
return sorted(paths, key=sorter)
|
||||
|
||||
|
||||
def get_vendored(ext: str, prefer_minified: bool = False) -> List[str]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user