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). A complete Example can be found at [stockfish_chess_engine](https://github.com/loloof64/StockfishChessEngineFlutter).
## Web support ## 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. In order to make multithreading available, the site must run in a secure environment.
The following headers must be set for this: The following headers must be set for this:

View file

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