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

修复 ReferenceError: process is not defined 问题 #1020

Closed wjf2016 closed 3 years ago

subins2000 commented 4 years ago

Thank you. This solves the error. Errors started happening when I upgraded electron

happy-func commented 4 years ago

fixed

you can add these text with .electron-vue/webpack.web.config.js and .electron-vue/webpack.renderer.config.js file,in HtmlWebpackPlugin.

templateParameters(compilation, assets, options) {
return {
compilation: compilation,
webpack: compilation.getStats().toJson(),
webpackConfig: compilation.options,
htmlWebpackPlugin: {
files: assets,
options: options
},
process,
};
},
zjfresh commented 4 years ago

It helps for me. Thanks a lot

tsflow commented 3 years ago

why not merge this pull requesst?its very useful