electron+vue开发项目,在vue文件中使用require方法时提示:
window.require is not a function
设置webPreferences的contextIsolation为false:
webPreferences: { nodeIntegration: true, contextIsolation: false }
electron+vue开发项目,在vue文件中使用require方法时提示:
window.require is not a function
设置webPreferences的contextIsolation为false:
webPreferences: { nodeIntegration: true, contextIsolation: false }