Vue.js with CLI and ICP Electron

Posted on December 18, 2020

If you want to use the ipc message of Electron from within a Vue.js project, here the way learned from this threads:

<script>
const { ipcRenderer } = window.require('electron')

export default {
  methods:{
    send(){
      ipcRenderer.invoke('perform-action', {a:true})
    }
  }
}
</script>
Spotted a typo? Send a patch