This commit is contained in:
jusax23 2024-02-25 00:52:01 +01:00
parent 8f9f220c40
commit 8816d79438
Signed by: jusax23
GPG key ID: 4A6CED31031AE931
2 changed files with 7 additions and 7 deletions

View file

@ -29,7 +29,7 @@ stockfish.dispose();
A complete Example can be found at [stockfish_chess_engine](https://github.com/loloof64/StockfishChessEngineFlutter).
## Web support
Web support is currently experimental. It uses a version of stockfish compiled with [emscripten](https://emscripten.org/).
Web support is currently experimental and currently requires manuly adding assets. It uses a version of stockfish compiled with [emscripten](https://emscripten.org/).
In order to make multithreading available, the site must run in a secure environment.
The following headers must be set for this:

View file

@ -45,12 +45,12 @@ flutter:
ffiPlugin: true
web:
# -------------------
assets:
- web/js_bindings.js
- web/stockfish_data.bin
- web/flutter_stockfish_plugin.js
- web/flutter_stockfish_plugin.wasm
- web/flutter_stockfish_plugin.worker.js
#assets:
# - web/js_bindings.js
# - web/stockfish_data.bin
# - web/flutter_stockfish_plugin.js
# - web/flutter_stockfish_plugin.wasm
# - web/flutter_stockfish_plugin.worker.js
# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg