serve icon indicating copy to clipboard operation
serve copied to clipboard

feat: `--[no]-trailing-slash` CLI flags

Open andybarron opened this issue 1 year ago • 0 comments

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!

andybarron avatar Jun 18 '24 01:06 andybarron