You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not being a frontend guy, I wonder how a web browser grabs the initial document when there is only an index.js, but no index.html at all. Can you post a log of dfx deploy?
I took a look at identity.ic0.app and it also bootstraps from an index.js only. I am not saying anybody should introduce a .html, I am just curious about the mechanism.
@ggreif I've created a PR with updates to the code which also introduce an HTML file. The htmlWepackPlugin is used to generate the actual HTML file so technically it is not needed. However, if you need to add your own configuration to the output HTML file, you can use the one I've added. htmlWebpackPlugin will use it as a template.
Both branches updated. Thanks @ggreif for pointing out the inconsistencies of the project with the new DFINITY default project. Always glad to receive feedback and to see that my work is useful to someone!
Activity
[-]Question: where is the index.html[/-][+]Question: where is the `index.html`[/+][-]Question: where is the `index.html`[/-][+]Question: where is the `index.html`?[/+]nop33 commentedon May 22, 2021
Looks like many things in the project structure changed with the latest SDK release. I need to update the code.
ggreif commentedon May 22, 2021
I took a look at
identity.ic0.app
and it also bootstraps from anindex.js
only. I am not saying anybody should introduce a.html
, I am just curious about the mechanism.Adapt code to new default project structure
nop33 commentedon May 22, 2021
@ggreif I've created a PR with updates to the code which also introduce an HTML file. The
htmlWepackPlugin
is used to generate the actual HTML file so technically it is not needed. However, if you need to add your own configuration to the output HTML file, you can use the one I've added.htmlWebpackPlugin
will use it as a template.Adapt code to new default project structure
Adapt code to new default project structure
Adapt code to new default project structure
nop33 commentedon May 22, 2021
Both branches updated. Thanks @ggreif for pointing out the inconsistencies of the project with the new DFINITY default project. Always glad to receive feedback and to see that my work is useful to someone!
Adapt code to new default project structure