Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29.

This commit is contained in:
Keavon Chambers
2021-03-23 01:09:29 -07:00
parent 76043cebcb
commit fb5ce7e388
26 changed files with 314 additions and 649 deletions
+10
View File
@@ -21,5 +21,15 @@ import MainWindow from "./components/window/MainWindow.vue";
export default defineComponent({
components: { MainWindow },
created() {
this.greet();
},
methods: {
async greet() {
const wasm = import("../wasm/pkg");
const { greet } = await wasm;
console.log(greet("Graphite"));
},
},
});
</script>