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-27 02:26:55 -07:00
parent 8741e31c92
commit 7323d3cd21
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>