-
Notifications
You must be signed in to change notification settings - Fork 2
/
Trunk.toml
22 lines (21 loc) · 802 Bytes
/
Trunk.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[build]
public_url = "./"
# # The following is used to display a loading text while downloading the WASM binary...
# # ref: https://github.com/GoogleChromeLabs/wasm-bindgen-rayon/issues/11#issuecomment-932397527
# pattern_script = '''<script type="module">
# import init from '{base}{js}';
# const loadingTextElm = document.getElementById("wasm-loading-text");
# async function main () {
# try {
# if(loadingTextElm) loadingTextElm.style.display = 'block';
# await init('{base}{wasm}');
# if(loadingTextElm) loadingTextElm.style.display = 'none';
# } catch (e) {
# console.error(e);
# if(loadingTextElm) loadingTextElm.style.display = 'none';
# }
# }
# main();
# </script>'''
[serve]
port = 3000