-
Notifications
You must be signed in to change notification settings - Fork 22
feat: SPA and index.html
serving
#420
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking better!
--spa
and --index
flags
--spa
and --index
flags--spa
and --index
flags
--spa
and --index
flagsindex.html
serving
IIRC Clap allows you to have dependencies between arguments. I think we can merge this and have that improvement as iteration. |
The problem from the description is still there. In the current state |
If #420 there was still an issue that `--spa would work very weirdly without `--index`; single page applications are never implemented without also using `index.html` files. This PR fixes this by automatically setting `cli.index` to `true` if `cli.spa` is set to true. I could throw an error if the `--index` flag is not passed in with `--spa`, but I think those are way too many keystrokes for a feature someone would already expect I manually tested this and it works great for every case
Copy/pasted every important bit from the previous PR.
Everything looks great except for one small problem: When the
--spa
flag is used, the--index
flag has to be enabled as well. But the code is really split up into a lot of files and I don't know where I can setcli.index
totrue
ifcli.spa
istrue
in the code