Skip to content

Question: where is the index.html? #3

Closed
@ggreif

Description

@ggreif
Contributor

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?

Activity

changed the title [-]Question: where is the index.html[/-] [+]Question: where is the `index.html`[/+] on May 22, 2021
changed the title [-]Question: where is the `index.html`[/-] [+]Question: where is the `index.html`?[/+] on May 22, 2021
nop33

nop33 commented on May 22, 2021

@nop33
Owner

Looks like many things in the project structure changed with the latest SDK release. I need to update the code.

ggreif

ggreif commented on May 22, 2021

@ggreif
ContributorAuthor

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.

added a commit that references this issue on May 22, 2021
d5b7568
nop33

nop33 commented on May 22, 2021

@nop33
Owner

@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.

added a commit that references this issue on May 22, 2021
49b2f66
added 2 commits that reference this issue on May 22, 2021
0ea6cf9
4eff2fc
nop33

nop33 commented on May 22, 2021

@nop33
Owner

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!

added a commit that references this issue on Jun 2, 2021
d9b0402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ggreif@nop33

      Issue actions

        Question: where is the `index.html`? · Issue #3 · nop33/dfinity-vue