Skip to content
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

feat: --[no]-trailing-slash CLI flags #806

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andybarron
Copy link

Changes

  • Add --trailing-slash and --no-trailing-slash CLI flags, which correlate to "trailingSlash": true and "trailingSlash": false in serve.json.
  • Update affected tests.
  • Add tests for new CLI flags.

Rationale

I ran into #628 while using serve to view Jest coverage reports. I was able to bypass the issue using serve.json, but I needed to put it outside the coverage/ directory (which is in .gitignore) and use the -c flag to link it. Felt like overkill for a pretty simple flag, so I added it to the CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant