mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 12:08:13 +08:00
Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user