summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-02 03:09:16 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-02 03:44:14 +0200
commit90cf272d6779ba2385ea5f574a19430d9a9975af (patch)
tree568f6296815ac19907758a1d41d9ee6d6732c415
parente1e42f87bdccb21c8c27e88063abd87bbdd22832 (diff)
downloadiced-90cf272d6779ba2385ea5f574a19430d9a9975af.tar.gz
iced-90cf272d6779ba2385ea5f574a19430d9a9975af.tar.bz2
iced-90cf272d6779ba2385ea5f574a19430d9a9975af.zip
Update `iced_web` build documentation
-rw-r--r--web/README.md1
-rw-r--r--web/src/lib.rs5
2 files changed, 4 insertions, 2 deletions
diff --git a/web/README.md b/web/README.md
index 83d1500f..1b818ab6 100644
--- a/web/README.md
+++ b/web/README.md
@@ -50,6 +50,7 @@ Once the example is compiled, we need to create an `.html` file to load our appl
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tour - Iced</title>
</head>
<body>
diff --git a/web/src/lib.rs b/web/src/lib.rs
index a0b39c4a..29120dbf 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -23,8 +23,8 @@
//!
//! ```bash
//! cd examples
-//! cargo build --example tour --target wasm32-unknown-unknown
-//! wasm-bindgen ../target/wasm32-unknown-unknown/debug/examples/tour.wasm --out-dir tour --web
+//! cargo build --package tour --target wasm32-unknown-unknown
+//! wasm-bindgen ../target/wasm32-unknown-unknown/debug/tour.wasm --out-dir tour --web
//! ```
//!
//! Then, we need to create an `.html` file to load our application:
@@ -34,6 +34,7 @@
//! <html>
//! <head>
//! <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+//! <meta name="viewport" content="width=device-width, initial-scale=1">
//! <title>Tour - Iced</title>
//! </head>
//! <body>