SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

Is there a way to disable nodeIntegration?? #1019

Open Alssdev opened 4 years ago

Alssdev commented 4 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

# I want to use 'preload.js' to improve the security of my software. I tried to do it by myself but to 3 errors appear. I'm sure there is a way.

How can I reproduce this problem?

# if you (in /main/index.js) write this code in the attributes of the mainWindow:

webPreferences: {
      nodeIntegration: **false**,
    }, 
If visual, provide a screenshot.

error image

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.