Skip to content

Commit d9d6fb8

Browse files
authored
put __reflex_global_styles in a link (#5471)
1 parent 0ba251d commit d9d6fb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reflex/.templates/jinja/web/pages/_app.js.jinja2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% from "web/pages/macros.js.jinja2" import renderHooks %}
33

44
{% block early_imports %}
5-
import '$/styles/__reflex_global_styles.css'
5+
import reflexGlobalStyles from '$/styles/__reflex_global_styles.css?url';
66
{% endblock %}
77

88
{% block declaration %}
@@ -20,6 +20,10 @@ import * as {{library_alias}} from "{{library_path}}";
2020
{% endblock %}
2121

2222
{% block export %}
23+
export const links = () => [
24+
{ rel: 'stylesheet', href: reflexGlobalStyles, type: 'text/css' }
25+
];
26+
2327
function AppWrap({children}) {
2428
{{ renderHooks(hooks) }}
2529

0 commit comments

Comments
 (0)