leptos-use/examples/use_service_worker
2024-08-22 23:06:55 -04:00
..
res/icon WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
src made use_service_worker more in line with the other functions 2023-10-24 00:36:32 -05:00
style WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
Cargo.toml added features for every function. 2024-08-22 23:06:55 -04:00
index.html WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
input.css WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
manifest.json WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
post_build.sh Problem: mdbook use_service_worker script is not portable 2023-11-11 12:41:04 +00:00
README.md WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
rust-toolchain.toml WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
service-worker.js WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
tailwind.config.js WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
Trunk.toml Problem: mdbook use_service_worker script is not portable 2023-11-11 12:41:04 +00:00

A simple example for use_service_worker.

If you don't have it installed already, install Trunk and Tailwind as well as the nightly toolchain for Rust and the wasm32-unknown-unknown target:

cargo install trunk
npm install -D tailwindcss @tailwindcss/forms
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown

Then, open two terminals. In the first one, run:

npx tailwindcss -i ./input.css -o ./style/output.css --watch

In the second one, run:

trunk serve --open