Explorar o código

improve js build doc (#43)

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
2f69b5776f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      webiojs/README.md

+ 4 - 2
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
-```
+```
+
+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.