1.0.7 • Published 3 years ago
electron-build-service v1.0.7
Migrate from the vite-electron-service package.
Usage
pnmp add -D electron-build-service
Changes:
1."electron, electron-builder, vite" moves from dependencies to devDependencies, so you should install them in your project's project.
2.Removed rollup-related plug-ins in this package.
3.Node fs.watch api is used to listen to the changes of the main process file and remove the vite.build compilation monitoring of the main process file, which avoids compiling the main process file in the development environment, speeds up the startup speed, avoids disk writing and improves performance.
---
4. Optimize the monitoring of file changes in the main process to prevent callback function that listen for file changes to be triggered frequently and repeatedly.
Dev debugger
You can specify when you execute the pnpm command --mini=no
compiles only the source code.
Why??
At present, we are packaged with the rollup process. Later, we will compile the electron-build-service directly with the vite in your project, and we will also develop extensible interfaces. You can freely configure the compilation tools in your project.