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

HTTP server #65

Draft
wants to merge 113 commits into
base: main
Choose a base branch
from
Draft

HTTP server #65

wants to merge 113 commits into from

Conversation

lydell
Copy link
Owner

@lydell lydell commented Jul 2, 2023

This makes the already existing HTTP server (used for WebSockets) also serve static files. Explained more in the new docs.

This makes elm-watch an alternative to elm-live and elm-go in many situations.

TODO:

  • tests

lydell added 30 commits January 6, 2024 20:09
Conflicts:
	docs/server.md
Conflicts:
	client/WebSocketMessages.ts
	client/client.ts
	example/README.md
	scripts/Build.ts
	src/Compile.ts
	src/ElmWatchJson.ts
	src/Errors.ts
	src/Hot.ts
	src/Inject.ts
	src/PathHelpers.ts
	src/Project.ts
	src/Types.ts
	src/WebSocketServer.ts
	src/index.ts
	tests/Errors.test.ts
	tests/Hot.test.ts
	tests/Project.test.ts
Firefox has solved the bug with “restricted” errors being thrown a year
ago. However, Firefox still caches style sheets over eagerly, so hot
reloading `@import` still doesn’t work. But at least we don’t need a
separate code path anymore. We still print a warning on Firefox.
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.

1 participant