Commit Graph
24 Commits
Author SHA1 Message Date
Evan Almloff 9d55bfc1dc Integrate wasm-opt into the CLI (#2434)
* integrate wasm-opt

* include wasm opt configuration in the default dioxus.toml
2024-06-10 20:48:04 -07:00
Evan Almloff 245003a5d4 Create a Static Site Generation platform; Deduplicate hot reloading code (#2226)
* create static site generation helpers in the router crate

* work on integrating static site generation into fullstack

* move ssg into a separate crate

* integrate ssg with the launch builder

* simplify ssg example

* fix static_routes for child routes

* move CLI hot reloading websocket code into dioxus-hot-reload

* fix some unused imports

* use the same hot reloading websocket code for fullstack

* fix fullstack hot reloading

* move cli hot reloading logic into the hot reload crate

* ssg example working with dx serve

* add more examples

* fix clippy

* fix formatting

* fix hot reload doctest imports

* fix axum imports

* don't run server doc tests

* Fix hot reload websocket doc examples
2024-05-22 07:24:15 -05:00
Wojciech Niedźwiedź 1b82ad4ddd cli: disable opening the tab by default, add some trace logging for config resolution (#2377) 2024-05-01 08:32:04 -05:00
Evan Almloff a27d4e71ed Only compress web assets in the CLI (#2329)
* only compress web assets in the CLI

* precompressed -> pre-compressed

* only enable pre-compression in release builds
2024-04-26 00:47:04 -04:00
Zan Pan bd852c68fd Use tracing::warn when the dioxus CLI is not used (#2250) 2024-04-05 12:36:05 -07:00
Evan Almloff dadbab5d72 make some enums non-exhaustive (#2140) 2024-03-26 19:14:48 -07:00
Evan AlmloffandJonathan Kelley 460a685fa3 Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Jonathan Kelley bb8b4dc2fb FIx:
- asset hotreloading for desktop,
- asset dir for dxserve on desktop,
- extend features with platform
2024-03-13 17:15:49 -07:00
Jonathan Kelley 1bdc9d132e Load tracked assets 2024-03-13 14:35:28 -07:00
Jonathan Kelley ad7a350d2e fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
Evan Almloff 6b84f284c9 fix manganis assets overlapping between examples 2024-03-11 17:11:52 -05:00
Robin Tretter 8eda67ecb2 added hot-reload as config option with default to true (#2024) 2024-03-08 14:54:03 -06:00
Evan Almloff 1909b05412 Merge branch 'master' into pr/Andrew15-5/1903 2024-02-06 10:28:49 -06:00
Andrew Voynov ea9622a75c fix(serve): fixed long rebuilds with dx serve 2024-02-06 00:27:45 +03:00
Evan Almloff 356497df4e fix some clippy lints 2024-02-05 08:17:25 -06:00
Andrew Voynov 48957b11d8 refactor(cli-config): modified CrateConfig struct
`out_dir` and `asset_dir` are now methods, because they derive from
`crate_dir` and `dioxus_config`.
2024-01-30 23:23:00 +03:00
Evan Almloff 2cc6f2f51f fix merge and reorganize the CLI a bit 2024-01-08 13:39:12 -06:00
Evan Almloff 0269a59c95 add fullstack platform 2024-01-08 13:24:23 -06:00
Evan Almloff 4ff86d9763 make some extra dependencies only enabled for the CLI 2023-11-21 13:11:49 -06:00
Evan Almloff d51e9b60df make WebDevResourceConfig optional 2023-11-19 11:16:15 -06:00
Evan Almloff e11f3fdc48 fix clippy 2023-11-15 09:30:15 -06:00
Evan Almloff 1ed66a54cc fix cli configuration environment variable 2023-11-14 15:50:04 -06:00
Evan Almloff 06be18a591 export lazy current config 2023-11-14 15:34:06 -06:00
Evan Almloff 8a2d170d96 pull out the CLI config data into a separate library 2023-11-08 12:48:25 -06:00