electron-vite / vite-plugin-electron

:electron: Electron⚡️Vite core repo
https://github.com/electron-vite
MIT License
691 stars 56 forks source link

Switch console to utf-8 encoding #216

Closed tadmi closed 7 months ago

tadmi commented 9 months ago

https://github.com/electron/electron/issues/7137

caoxiemeihao commented 7 months ago

It seems unnecessary to modify the plugin.

{
  "scripts": {
-   "dev": "vite",
+   "dev": "chcp 65001 & vite",
  },
}