-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trunk fails to find rust code when build.target = "src/index.html"
#857
Comments
See #849 (comment). In your |
huh, interesting. I would've really expected this to be configurable from Trunk.toml. it feels really unintuitive to configure something like this inside the index.html, imho. kinda like a |
I agree, it could be more intuitive. On the other side, If you have any ideas how to improve that, that would be great. |
as a fix for this specific issue, I think it'd be nice if Trunk checked for Cargo.toml..
..which would fix my case and other similar ones without any additional configuration |
Sounds reasonable. Could you come up with a PR? |
if you could point me at what files I should look in I might be able to work on it tonight :) |
Sorry for the late response. This could/should/might be a good introduction: Lines 1 to 60 in 14b972f
Here is the code for loading the configuration: trunk/src/config/models/mod.rs Lines 119 to 148 in 14b972f
|
I would like my index.html to live in the src/ directory, because I consider it to be part of my source code. Trunk unfortunately doesn't seem to handle this well.
...results in Trunk saying...
...even though the Cargo.toml and src/main.rs files are unmoved.
I poked around the trunk repo a bit to see if I could figure out a fix, but got lost pretty quickly. :(
The text was updated successfully, but these errors were encountered: