Skip to content

Commit 3ca7183

Browse files
committed
Readme: add a note about running from a local dir
1 parent e00a53b commit 3ca7183

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ app's HTML file:
4949
See the [examples](examples) directory for more details and complete usage
5050
examples.
5151

52+
### Testing from a local folder
53+
54+
Note that due to security restrictions (which are there to protect you!)
55+
browsers do not allow loading arbitrary local files, which includes `*.qml`.
56+
57+
Because of that, to test the goodness of QmlWeb on your own machine, you
58+
have to spin up a local http server, e.g. by running `npx http-server`.
59+
60+
Or try out [qmlweb-viewer](https://github.com/qmlweb/qmlweb-viewer).
61+
5262
### API
5363

5464
You can use DOM elements as the base for QML components:

0 commit comments

Comments
 (0)