electron-vueで作成したアプリをGitLabのRunnerで自動ビルドし、
WindowsとLinuxの実行ファイルを生成しているのですが、
久しぶりにパッケージ化してみたところWindows用にビルドした際にエラーとなった。
ERROR in Template execution failed: ReferenceError: process is not defined
ERROR in ReferenceError: process is not defined
- index.ejs:768
/builds/user_name/app_name/src/index.ejs:768:2
- index.ejs:773 module.exports
/builds/user_name/app_name/src/index.ejs:773:3
- index.js:284
[app_name]/[html-webpack-plugin]/index.js:284:18
GitHubにissueがあり、こちらを参考に変更を加えたところ、
無事ビルドできるようになりました。
(翌日に成果物を見せなくてはいけないのに、ビルドできなくて焦った)
感謝!!