소스 검색

improve js build doc (#43)

wangweimin 4 년 전
부모
커밋
2f69b5776f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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.