1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| import { WebpackPlugin } from "@electron-forge/plugin-webpack"; import { MakerZIP } from "@electron-forge/maker-zip"; import mainConfig from "./webpack.main.config"; import preloadConfig from "./webpack.preload.config"; import rendererConfig from "./webpack.renderer.config";
export default { packagerConfig: { name: "ElectronStartup", icon: "./icons/favicon", asar: true, ignore: [ "dist", "src", "test", "node_modules", ".eslintrc.json", ".prettierrc.json", "forge.config.ts", "jest.config.json", "postcss.config.js", "tailwind.config.js", "tsconfig.json", "webpack.main.config.ts", "webpack.preload.config.ts", "webpack.renderer.config.ts", "webpack.shared.plugins.ts", "webpack.shared.rules.ts", "README.md", ], }, rebuildConfig: {}, makers: [new MakerZIP({}, ["darwin", "win32", "linux"])], plugins: [ new WebpackPlugin({ mainConfig, renderer: { config: rendererConfig, entryPoints: [ { name: "main_window", html: "./src/renderer/index.html", js: "./src/renderer/renderer.tsx", preload: { config: preloadConfig, js: "./src/renderer/preload.ts", }, }, ], }, }), ], };
|