From 2f69b5776f4e840ec7605cd2b44f8f07c41e2d17 Mon Sep 17 00:00:00 2001 From: wangweimin Date: Fri, 26 Mar 2021 11:10:13 +0800 Subject: [PATCH] improve js build doc (#43) --- webiojs/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webiojs/README.md b/webiojs/README.md index 6272bb9c..1523ab88 100644 --- a/webiojs/README.md +++ b/webiojs/README.md @@ -4,11 +4,13 @@ ```bash npm install -DEV=1 gulp +gulp ``` ## Use built js ```bash cp dist/pywebio.min.* ../pywebio/html/js -``` \ No newline at end of file +``` + +By default, PyWebIO uses CDN for frontend resources. For local dev build, you also need to set `cdn=False` in `start_server()` or `webio_handler()` in your PyWebIO app to specify the use of the local built js file. \ No newline at end of file