Skip to content

Built files rely on an http server #694

Closed
@Paul-Yuchao-Dong

Description

@Paul-Yuchao-Dong

Currently the built files in /dist folder requires a local server to serve the content.

I did a bit of tinkering and realize that by adding a dot . in front of the /static/... and change them to ./static/..., the index.html can now be served over file:// instead of the http protocol. Also with limited testing, (with python -m http.server), the added . didn't affect the ability to serve over the http protocol either.

Looks we can save a number of key strokes to add that useful dot without impact the functions. But manually adding this would be counter-productive, so I would need some help to try to get webpack to do it. Any easy to follow learning material?

What would be even greater is to incorporate this dot into the scaffolding, so every project would have this.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions