{"id":17698559,"url":"https://github.com/iamogbz/webpack-compiler-plugin","last_synced_at":"2025-05-12T20:08:47.030Z","repository":{"id":34984650,"uuid":"194012196","full_name":"iamogbz/webpack-compiler-plugin","owner":"iamogbz","description":"🏗️ Easily listen to webpack compiler hooks and execute commands on events","archived":false,"fork":false,"pushed_at":"2024-09-30T10:15:31.000Z","size":144668,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-29T16:07:30.292Z","etag":null,"topics":["shell-plugin","webpack","webpack-command","webpack-compile","webpack-plugin","webpack-shell","webpack4"],"latest_commit_sha":null,"homepage":"http://ogbizi.com/webpack-compiler-plugin/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamogbz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-27T02:55:48.000Z","updated_at":"2024-06-26T10:53:02.000Z","dependencies_parsed_at":"2023-09-23T08:02:24.211Z","dependency_job_id":"af80f656-b6fb-4939-8b87-0df803ffff78","html_url":"https://github.com/iamogbz/webpack-compiler-plugin","commit_stats":{"total_commits":1666,"total_committers":6,"mean_commits":277.6666666666667,"dds":"0.30792316926770713","last_synced_commit":"a746106ac21290ca29ebadfab393bda06e065343"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":"iamogbz/node-js-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamogbz%2Fwebpack-compiler-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamogbz%2Fwebpack-compiler-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamogbz%2Fwebpack-compiler-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamogbz%2Fwebpack-compiler-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamogbz","download_url":"https://codeload.github.com/iamogbz/webpack-compiler-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253814975,"owners_count":21968560,"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":["shell-plugin","webpack","webpack-command","webpack-compile","webpack-plugin","webpack-shell","webpack4"],"created_at":"2024-10-24T15:10:07.427Z","updated_at":"2025-05-12T20:08:46.981Z","avatar_url":"https://github.com/iamogbz.png","language":"TypeScript","readme":"# Webpack Compiler Plugin\n\n[![Build Status](https://github.com/iamogbz/webpack-compiler-plugin/workflows/Build/badge.svg)](https://github.com/iamogbz/webpack-compiler-plugin/actions?query=workflow%3ABuild)\n[![Coverage Status](https://coveralls.io/repos/github/iamogbz/webpack-compiler-plugin/badge.svg)](https://coveralls.io/github/iamogbz/webpack-compiler-plugin)\n[![npm version](https://badge.fury.io/js/webpack-compiler-plugin.svg)](https://badge.fury.io/js/webpack-compiler-plugin)\n[![Dependencies](https://img.shields.io/librariesio/github/iamogbz/webpack-compiler-plugin)](https://github.com/iamogbz/webpack-compiler-plugin)\n[![Dependabot badge](https://badgen.net/github/dependabot/iamogbz/webpack-compiler-plugin/?icon=dependabot)](https://app.dependabot.com)\n\nEasily listen to `webpack` compiler hooks and execute commands on events.\n\n## API\n\nThis plugin runs your specified commands at keys stages in the `webpack` build process.\n\n### `buildStart`\n\nThis is run only once when the `webpack` build is first started, just after plugin are loaded.\n\nSee [webpack.compiler.hook.afterPlugins](https://webpack.js.org/api/compiler-hooks/#afterplugins).\n\n### `compileStart`\n\nThis is run every time `webpack` starts compiling the source code, can be run multiple times when using the `--watch` flag.\n\nSee [webpack.compiler.hook.compilation](https://webpack.js.org/api/compiler-hooks/#compilation).\n\n### `compileEnd`\n\nThis is run every time `webpack` finishes compiling the source code, just after the code is emitted.\n\nSee [webpack.compiler.hook.done](https://webpack.js.org/api/compiler-hooks/#done).\n\n### `buildEnd`\n\nThis is the last stage run only when the build process is exiting. Is also triggered when exiting is caused by a build failure, interrupt signal, etc.\n\nSee [node.process.exit](https://nodejs.org/api/process.html#process_event_exit).\n\n## Example\n\n```js\n/* webpack.config.js */\n\nconst { execSync } = require(\"child_process\");\nconst { WebpackCompilerPlugin } = require(\"webpack-compiler-plugin\");\n\nmodule.exports = {\n    mode: \"development\",\n    plugins: [\n        new WebpackCompilerPlugin({\n            name: \"my-compile-plugin\",\n            listeners: {\n                buildStart: () =\u003e execSync(\"echo 'hello'\"),\n                buildEnd: () =\u003e execSync(\"echo 'bye bye'\"),\n            },\n            stageMessages: null, // to disable stage messages\n        }),\n    ],\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamogbz%2Fwebpack-compiler-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamogbz%2Fwebpack-compiler-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamogbz%2Fwebpack-compiler-plugin/lists"}