{"id":13725950,"url":"https://github.com/lukeed/webpack-messages","last_synced_at":"2025-10-09T18:23:46.340Z","repository":{"id":23308610,"uuid":"98684022","full_name":"lukeed/webpack-messages","owner":"lukeed","description":"Beautifully format Webpack messages throughout your bundle lifecycle(s)!","archived":false,"fork":false,"pushed_at":"2022-02-24T12:38:13.000Z","size":181,"stargazers_count":246,"open_issues_count":3,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T15:44:38.805Z","etag":null,"topics":["console","create-react-app","error-handling","formatter","messages","prettify","pretty-print","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lukeed.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":"2017-07-28T20:08:48.000Z","updated_at":"2025-03-07T02:40:06.000Z","dependencies_parsed_at":"2022-08-07T11:00:21.751Z","dependency_job_id":null,"html_url":"https://github.com/lukeed/webpack-messages","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fwebpack-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fwebpack-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fwebpack-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fwebpack-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeed","download_url":"https://codeload.github.com/lukeed/webpack-messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252957053,"owners_count":21831426,"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":["console","create-react-app","error-handling","formatter","messages","prettify","pretty-print","webpack","webpack-plugin"],"created_at":"2024-08-03T01:02:42.682Z","updated_at":"2025-10-09T18:23:41.293Z","avatar_url":"https://github.com/lukeed.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# webpack-messages\n\n\u003e Beautifully format Webpack messages throughout your bundle lifecycle(s)!\n\n\n***Default***\n\n\u003cimg src=\"shots/default.jpg\" width=\"300\" /\u003e\n\n***Default Error***\n\n\u003cimg src=\"shots/error_default.jpg\" width=\"300\" /\u003e\n\n***Named Bundles***\n\n\u003cimg src=\"shots/named.jpg\" width=\"300\" /\u003e\n\n***Named Bundle Error***\n\n\u003cimg src=\"shots/error_named.jpg\" width=\"300\" /\u003e\n\n***Custom Logger***\n\n\u003cimg src=\"shots/logger.jpg\" width=\"300\" /\u003e\n\n***Named Bundle Error w/ Custom Logger***\n\n\u003cimg src=\"shots/error_named_logger.jpg\" width=\"300\" /\u003e\n\n\n## Install\n\n```\n$ npm install webpack-messages --save-dev\n```\n\n\n## Usage\n\n```js\n// webpack.config.js\nconst WebpackMessages = require('webpack-messages');\n\nmodule.exports = {\n  // ...\n  plugins: [\n    new WebpackMessages({\n      name: 'client',\n      logger: str =\u003e console.log(`\u003e\u003e ${str}`)\n    })\n  ]\n}\n```\n\n\n## API\n\n### WebpackMessages(options)\n\n#### options.name\n\nType: `String`\n\nOptionally provide a name for your bundle. Strongly recommended when compiling multiple bundles!\n\n#### options.logger\n\nType: `Function`\u003cbr\u003e\nDefault: `str =\u003e console.log(str)`\n\nReplace the default function -- ideal for prepending a symbol or namespace to your messages.\n\nFunction receives a (colorized) message `string` as its only parameter.\n\n#### options.onComplete\n\nType: `Function`\n\nRun a custom function once a bundle has been compiled successfully. If provided, the default success handler will not run.\n\nFunction receives a formatted `name` string (or `''`) and the Webpack [`stats`](https://github.com/webpack/docs/wiki/node.js-api#stats) object.\n\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fwebpack-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeed%2Fwebpack-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fwebpack-messages/lists"}