Update July 11, 2018
Hi Dash Community, @chriddyp here. We’re working on a better solution for this here: https://github.com/plotly/dash/pull/286. It will be released within the coming week.
Hi,
how to use the app.css.config.serve_locally
and app.scripts.config.serve_locally
option for scripts and style sheets that are not part of the dash package? It seems like @app.server.route
is ignored if serve_locally is active.
The warning message is comprehensible, because the custom style sheet is not part of dash:
~/anaconda3/lib/python3.6/site-packages/dash/resources.py:35: UserWarning:
A local version of /static/style.css is not available
Background: I’m behind a firewall and cannot access CDN to load the dash/react javascript files. But I also have a custom CSS style sheet, served by a flask route.
Thanks