Set: width and height of canvas in html and Edit: resource paths of resource.rs using "origin.endswith"#552
Set: width and height of canvas in html and Edit: resource paths of resource.rs using "origin.endswith"#552kimgh06 wants to merge 2 commits intosotrh:masterfrom
Conversation
…ource.rs using origin.endswith
|
The reason I have it this way is due to a quirk with Vuepress. I've been unable to support referencing static assets at a path other than the root. Changing that would break the website. |
|
I apologize that. I thought that the codes are divided to 2 versions. Because of my misunderstanding, I didn't consider that this code are running with Vuepress. How about making two versions? |
If you want you can create a feature flag to build with the |
Set: width and height of canvas in html
When using html, a canvas overflowed web browser's display.
To prevent, setting css of a canvas.
And I would like that a canvas matchs browser's display.
to
Edit: resource paths of resource.rs using "origin.endswith"
When using localhost with server, it occured "Not Found" error.
Because it tried to get "localhost:{port}/learn-wgpu/{resource file}".
According to path of a directory, the url should be "localhost:{port}/res/{resource file}"
to
I hope this tutorial would be greater for beginners like me.
Regards.
From kimgh06.