Open mxblsdl opened 2 years ago
fascinating. i'm trying to figure out why i would have deleted that part of the golem_add_resources but I cannot for the life of me figure out why I did that. Likely a vestige of my initial attempt at trying to get our logo to work.
In reality, there probably shouldn't be a separate function file, and instead have golem_add_resources in the app_ui.R (and the tagList logic) like golem does by default. Thanks for bringing it to my attention; I'll work on this fix right away.
I added a CSS file with
golem::add_css_file("styles")
which creates the fileinst/app/www/styles.css
and triggers a console message from golem saying the file will be automatically bundled in the app, but the app does not recognize files in the www folder and does not include them in the head of the file.I noticed you changed the
golem_add_ external_resources
function which bundles the www files together. I changed that function back to its original golem format and made a change in theapp_ui.R
file as well.golem_add_external_resources.R
I was getting an odd stack trace error with only this change so I put all of the UI elements into a taglist
app_ui.R
oldapp_ui.R
newThis gets the files in
app/www/
to be recognized and bundled and also allows for use ofgolem::add_css/js_file()
I understand you are going for simplicity in the package and I love what you have done, but this functionality seems at odds with the underlying golem functions.