You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
653 B

9 years ago
  1. ## Stored config
  2. Use the same options every time? Persist then to `package.json`:
  3. ```json
  4. {
  5. "name": "example",
  6. "version": "1.0.0",
  7. "local-web-server": {
  8. "port": 8100,
  9. "forbid": "*.json"
  10. }
  11. }
  12. ```
  13. or `.local-web-server.json`
  14. ```json
  15. {
  16. "port": 8100,
  17. "forbid": "*.json"
  18. }
  19. ```
  20. local-web-server will merge and use all config found, searching from the current directory upward. In the case both `package.json` and `.local-web-server.json` config is found in the same directory, `.local-web-server.json` will take precedence. Options set on the command line take precedence over all.
  21. To inspect stored config, run:
  22. ```sh
  23. $ ws --config
  24. ```