Electron process in Vue.js CLI version
Posted on December 18, 2020
If you want to use the process
of Electron from within a Vue.js project, there's a little conflict because webpack inject its own process
object.
You can use both in this way:
export default{
mounted(){
console.log(window.process) // electron process
console.log(process) // webpack process
}
}