Replies: 1 comment 1 reply
-
Ok, I found the answer, and it's genuinely as silly of a mistake as you might hope: It's in the head section -- the tag for "Loading, this will take a moment" is an h1 (or h2 tag), and that's causing something in trunk to fail with no error, warning, caution, or note. If you make it a title tag, everything works just like you'd hope. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to use a simple CSS file, packaged with Trunk, to use CSS in Yew. I believe I've followed the documentation correctly, and it's almost working. The trunk build puts the hashed CSS file in the correct folder, but the link tag with the hashed filename doesn't end up in the resultant index.html file. Here's the minimum reproducible example.
Trunk.toml:
index.html:
main.rs:
styles.css:
I would expect the HTML file to have a link to the CSS file. As you can see, there's no link tag for the CSS file, which has been hashed and placed in the correct place. So it's getting a halfway solution -- it's building correctly, but it isn't putting in the tag in the html that it builds.
I'm hoping that I've just done something silly here, or misread the documentation, rather than that I've found a bug.
Thanks for the help,
Dan
Beta Was this translation helpful? Give feedback.
All reactions