mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-07-01 04:43:14 +08:00
fix: fix typos
This commit is contained in:
parent
f06b279554
commit
b1c2ec5868
@ -32,7 +32,7 @@ export default defineConfig(({ command }) => {
|
|||||||
minify: isBuild,
|
minify: isBuild,
|
||||||
outDir: 'dist-electron/main',
|
outDir: 'dist-electron/main',
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
// Some third-party Node.js libraries may not be built correctly by Vite, especially `C/C++` addons,
|
// Some third-party Node.js libraries may not be built correctly by Vite, especially `C/C++` addons,
|
||||||
// we can use `external` to exclude them to ensure they work correctly.
|
// we can use `external` to exclude them to ensure they work correctly.
|
||||||
// Others need to put them in `dependencies` to ensure they are collected into `app.asar` after the app is built.
|
// Others need to put them in `dependencies` to ensure they are collected into `app.asar` after the app is built.
|
||||||
// Of course, this is not absolute, just this way is relatively simple. :)
|
// Of course, this is not absolute, just this way is relatively simple. :)
|
||||||
@ -56,8 +56,8 @@ export default defineConfig(({ command }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Ployfill the Electron and Node.js API for Renderer process.
|
// Polyfill the Electron and Node.js API for Renderer process.
|
||||||
// If you want use Node.js in Renderer process, the `nodeIntegration` needs to be enabled in the Main process.
|
// If you want to use Node.js in Renderer process, the `nodeIntegration` needs to be enabled in the Main process.
|
||||||
// See 👉 https://github.com/electron-vite/vite-plugin-electron-renderer
|
// See 👉 https://github.com/electron-vite/vite-plugin-electron-renderer
|
||||||
renderer: {},
|
renderer: {},
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user