wangweimin 2f69b5776f improve js build doc (#43) há 4 anos atrás
..
src 7bd09d5b77 feat: `eval_js()` support get value of JS Promise há 4 anos atrás
.gitignore 44af1ceeab feat: migrate js to typescript há 5 anos atrás
README.md 2f69b5776f improve js build doc (#43) há 4 anos atrás
gulpfile.js c579da3a5e maint: add pywebio.js.map to dev release version há 4 anos atrás
package-lock.json 6883086a51 feat: add markdown parse option to `put_markdown()` há 4 anos atrás
package.json 6883086a51 feat: add markdown parse option to `put_markdown()` há 4 anos atrás
tsconfig.json 44af1ceeab feat: migrate js to typescript há 5 anos atrás

README.md

PyWebIO JS library

Build

npm install
gulp

Use built js

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.