chore: tweak assets folder
This commit is contained in:
parent
d2603ee67b
commit
8773a3d2c1
3 changed files with 3 additions and 3 deletions
Binary file not shown.
|
|
@ -11,12 +11,12 @@ import "./less/highlight.less";
|
||||||
import router from "./router";
|
import router from "./router";
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
import theme from "./theme";
|
import theme from "./theme";
|
||||||
import wasmUrl from "./wasm/gomark.wasm?url";
|
import gomarkWasm from "./assets/gomark.wasm?url";
|
||||||
import "./wasm/wasm_exec.js";
|
import "./assets/wasm_exec.js";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const go = new window.Go();
|
const go = new window.Go();
|
||||||
const responsePromise = fetch(wasmUrl);
|
const responsePromise = fetch(gomarkWasm);
|
||||||
const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject);
|
const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject);
|
||||||
go.run(instance);
|
go.run(instance);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue