cannot load css file
giadasp opened this issue · comments
I'm creating a package where I have a function that loads a Dash app on the localhost.
All the files are in the package "src" folder. I created an "assets" folder in the "src" folder where I put the css files.
When I run the app, Dash.jl does not load my css files. I cannot see them anywhere in the HTML source.
Can you please explain which structure should have my src folder to successfully load the local assets?
Thank you for your attention.
Giada
Ok, I've just realized that I have to say to the app that my assets folder is not "assets" but "src/assets". This means that the path is related to the directory in which the app has been run.
How can I do to make this path absolute without using web-hosted css files?
Since I want to distribute my app via the package I'm creating, I would like that the css needed for the app is in the package folder, not somewhere in the folder where the app is run.
I hope I explained well my problem.
I closed the issue because I understood where the problem was, but I would appreciate your help anyway.
Thanks in advance.
Giada