{"id":16384574,"url":"https://github.com/nashaofu/electron-dev-webpack-plugin","last_synced_at":"2026-05-07T10:35:39.424Z","repository":{"id":57221590,"uuid":"121459639","full_name":"nashaofu/electron-dev-webpack-plugin","owner":"nashaofu","description":"A webpack plugin for electron development","archived":false,"fork":false,"pushed_at":"2020-07-07T03:48:07.000Z","size":252,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:25:27.554Z","etag":null,"topics":["development","electron","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nashaofu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-14T01:56:29.000Z","updated_at":"2024-11-26T03:50:09.000Z","dependencies_parsed_at":"2022-08-29T04:10:09.851Z","dependency_job_id":null,"html_url":"https://github.com/nashaofu/electron-dev-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nashaofu/electron-dev-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashaofu%2Felectron-dev-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashaofu%2Felectron-dev-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashaofu%2Felectron-dev-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashaofu%2Felectron-dev-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nashaofu","download_url":"https://codeload.github.com/nashaofu/electron-dev-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashaofu%2Felectron-dev-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261012847,"owners_count":23096924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","electron","webpack","webpack-plugin"],"created_at":"2024-10-11T04:11:47.177Z","updated_at":"2026-05-07T10:35:39.293Z","avatar_url":"https://github.com/nashaofu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-dev-webpack-plugin\n\nA webpack plugin for electron development, When the file changes automatically restart electron main process. example: [shortcut-capture](https://github.com/nashaofu/shortcut-capture/blob/master/build/main/webpack.dev.conf.js#L14)\n\n![screenshot.jpg](./screenshot.jpg)\n\n## Install\n\n[![NPM](https://nodei.co/npm/electron-dev-webpack-plugin.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/electron-dev-webpack-plugin/)\n\n## Usage\n\n```ts\nimport path from 'path'\nimport webpack, { Configuration } from 'webpack'\nimport ElectronDevWebpackPlugin from './src'\n\nconst config: Configuration = {\n  mode: 'development',\n  entry: {\n    app: './app.js'\n  },\n  output: {\n    path: path.resolve(__dirname, '../dist'),\n    filename: '[name].js'\n  },\n  watch: true,\n  devtool: false,\n  plugins: [\n    new ElectronDevWebpackPlugin()\n    // or\n    new ElectronDevWebpackPlugin({\n      port: 5858 // electron inspect port\n    })\n  ]\n}\n\nwebpack(config, (err, stats) =\u003e {\n  console.log(err)\n})\n```\n\n## Options\n\n```ts\ninterface Options {\n  port?: number\n  title?: string\n  info?: (data: string) =\u003e void\n  warn?: (data: string) =\u003e void\n}\n```\n\n- port: electron inspect port, default `5858`\n\n```js\nnew ElectronDevWebpackPlugin({\n  port: 5858 // electron inspect port\n})\n```\n\n- title: Plugin log title, default `MAIN PROCESS`\n\n```js\nnew ElectronDevWebpackPlugin({\n  title: 'MAIN PROCESS'\n})\n```\n\n- info: Functions for custom output logs\n\n```js\nnew ElectronDevWebpackPlugin({\n  info: data =\u003e console.log(`INFO ${data}`)\n})\n```\n\n- warn: Custom function to output warnings\n\n```js\nnew ElectronDevWebpackPlugin({\n  warn: data =\u003e console.warn(`WARN ${data}`)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnashaofu%2Felectron-dev-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnashaofu%2Felectron-dev-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnashaofu%2Felectron-dev-webpack-plugin/lists"}