PyWebIO
PyWebIO copied to clipboard
Local dev build differs from the official dev build
pywebio/__version__.py from the git repository differs from the one made available from https://code.aliyun.com/wang0618/pywebio/repository/archive.zip even after following the instruction to generate the minified js file.
Workaround: add dev to __version__ or set cdn=False when calling start_server.
Environment Information
- Python Version: Python 3.9.2
- PyWebIO Version: 757e9926f8aeea706a6d578e4455d91eb5445b50
Thanks for the feedback, I forgot to put this situation in the js build document.
PyWebIO uses cdn by default for frontend resources, but only builds and uploads js to cdn when releasing a stable version. In dev version (the version string contains dev), PyWebIO will ingore cdn setting and always uses the local js file.
For local dev build, you need to set cdn=False to specify the use of local js files.