Closed hi85gh closed 5 years ago
Nuxt.js で node node_modules/.bin/nuxt generate
を実行した際、 dist/
ごと上書かれてしまうため、 nuxt.config.js#generate.dir
の設定を追加しました。
dist/electron
と dist/renderer
が並んでしまいますが、パッケージ化の対応時に修正します。
Babel までは検証できなかったのですが、 dist/electron/main.js
のサイズが肥大化する可能性もあるので @babel/preset-env
についても確認する必要があるかもしれません。
参考: electron-vue/.babelrc at master · SimulatedGREG/electron-vue
26 対応のため electron-vue を参考に設定ファイルを追加しました。
.electron/
配下のみ CommonJS の記法が必要ですが、今後はmain/
配下のファイルも ECMAScript の記法で記述することができます。common/ipcTypes.mjs
common/ipcTypes.js
に上書きました。index.html
npm audit
のエラーが発生していたこともありpackage-lock.json
を最新の依存関係で上書きました。