Commit Graph

33 Commits

Author SHA1 Message Date
Dillon Kearns
d5e97e7673 Fix error in test. 2022-08-08 10:58:34 -07:00
Dillon Kearns
d59c57ac01 Delete obsolete code (superceded by fetchRouteData). 2022-04-04 16:15:06 -07:00
Dillon Kearns
3e12b48112 Update template project. 2022-03-09 15:06:49 -08:00
Dillon Kearns
2d81800317 Add dev server styles into a css file and make sure that not found page styles are included. 2022-02-25 11:22:32 -08:00
Dillon Kearns
1706880175 Add some more error handling around showing error messages to ensure that errors aren't dropped. 2022-02-25 09:02:36 -08:00
Dillon Kearns
da08e1e1b3 Add try catch to ensure dev error shows up even if console logging it fails. 2022-02-23 14:39:17 -08:00
Dillon Kearns
f49595a578 Change elm-pages setup code so it works on root route (Vite had an issue loading it from a script module import). 2022-02-23 12:20:38 -08:00
Dillon Kearns
8ee5b2a649 Add missing. (+2 squashed commits)
Squashed commits:
[ea4646e3] Fix two errors.
[31faf674] Add initial Vite SSR setup.
2022-02-21 09:30:31 -08:00
Dillon Kearns
fbcbfa3c27 Add optional body parameter to reload page data port in order to avoid an extra round trip for form POST. 2022-02-17 11:52:21 -08:00
Dillon Kearns
69cdf963cf Remove some instances of content.json. 2022-02-03 20:08:45 -08:00
Dillon Kearns
163f611894 Prettier formatting. 2022-02-03 11:51:34 -08:00
Dillon Kearns
159c075324 Send content.dat updates for hot reloading. 2022-02-03 11:51:17 -08:00
Dillon Kearns
103433ade6 Use Lamdera Wire decoders to decode initial page data from flags. 2022-02-01 17:59:57 -08:00
Dillon Kearns
fcdd39b910 Use byte encodings for content.dat in dev server. 2022-02-01 10:11:47 -08:00
Dillon Kearns
cfbbf71bf5 Check if port is defined before subscribing to avoid error if port is unused. 2022-01-29 09:15:19 -08:00
Dillon Kearns
21d9ae9e35 Add port to reload current page's data. 2022-01-25 11:20:18 -08:00
Dillon Kearns
bf67cff13e Rename TemplateModulesBeta.elm entrypoint file -> Main.elm. 2021-12-23 14:28:52 -08:00
Dillon Kearns
87b60e4856 Run elm-review when errors point to generated code. 2021-08-27 10:27:37 -07:00
Dillon Kearns
f2402899f6 Clean up error message printing in build and dev server. 2021-08-02 17:38:38 -07:00
Dillon Kearns
eadabe1513 Remove log statement. 2021-07-26 17:06:46 -07:00
Dillon Kearns
4ede380fab Remove baseUrl from model, parse Path into the actual path including the base URL. 2021-07-19 20:59:42 -07:00
Dillon Kearns
ac06b3903d Add link for reference. 2021-07-08 13:23:11 -07:00
Dillon Kearns
0764a1a714 Hot reload CSS changes. 2021-07-08 11:59:40 -07:00
Dillon Kearns
33c62aaeaf Try initial content.json in a script tag. 2021-06-25 08:03:25 -07:00
Dillon Kearns
f1750de106 Simplify elm-pages.js code. 2021-06-24 15:55:41 -07:00
Dillon Kearns
82e0d34afd Add flags. 2021-05-17 12:51:04 -07:00
Dillon Kearns
d2bf1e1204 Add a prefetch attribute. 2021-05-14 19:33:52 -07:00
Dillon Kearns
a2d17c26c8 Handle initial content.json errors with hot reloading. 2021-04-23 13:51:12 -07:00
Dillon Kearns
0e8f48bb72 Setup HMR when there is an error on initial load. 2021-04-23 11:37:33 -07:00
Dillon Kearns
11267b5f62 Serve hmr.js from framework assets (not user static folder). 2021-04-22 21:25:02 -07:00
Dillon Kearns
e94d9b0cf7 Make sure connect is defined before running it. 2021-04-17 21:21:17 -07:00
Dillon Kearns
7a019036ec Use module.hot.apply API to update content json when the new app is ready to receive ports. 2021-04-11 15:35:02 -07:00
Dillon Kearns
a6514b844f Serve assets with npm package that does streaming and mime type handling. Serve up some files from the file system for simlicity. 2021-04-09 12:00:24 -07:00