{"id":26565420,"url":"https://github.com/freemenl/empty-webpack-build-detail-plugin","last_synced_at":"2025-03-22T17:30:23.317Z","repository":{"id":57224978,"uuid":"171973226","full_name":"FreemenL/empty-webpack-build-detail-plugin","owner":"FreemenL","description":"friendly display compilation details","archived":false,"fork":false,"pushed_at":"2019-02-23T09:27:22.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T03:02:48.143Z","etag":null,"topics":["chalk","filesize","fs-extra","gzip-size","recursive-readdir","strip-ansi","tapable"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/empty-webpack-build-detail-plugin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FreemenL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-22T01:32:02.000Z","updated_at":"2023-06-02T06:24:54.000Z","dependencies_parsed_at":"2022-08-24T11:01:06.730Z","dependency_job_id":null,"html_url":"https://github.com/FreemenL/empty-webpack-build-detail-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreemenL%2Fempty-webpack-build-detail-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreemenL%2Fempty-webpack-build-detail-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreemenL%2Fempty-webpack-build-detail-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreemenL%2Fempty-webpack-build-detail-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreemenL","download_url":"https://codeload.github.com/FreemenL/empty-webpack-build-detail-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244994648,"owners_count":20544200,"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":["chalk","filesize","fs-extra","gzip-size","recursive-readdir","strip-ansi","tapable"],"created_at":"2025-03-22T17:30:22.369Z","updated_at":"2025-03-22T17:30:23.234Z","avatar_url":"https://github.com/FreemenL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/webpack/webpack\"\u003e\r\n    \u003cimg width=\"200\" height=\"200\"\r\n      src=\"https://webpack.js.org/assets/icon-square-big.svg\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ch1\u003eempty-webpack-build-detail-plugin\u003c/h1\u003e\r\n  \u003cp\u003efriendly display compilation details\u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n\u003ch2 align=\"center\"\u003eInstall\u003c/h2\u003e\r\n\r\n```bash\r\n  cnpm install empty-webpack-build-detail-plugin -D\r\n```\r\n\r\n```bash\r\n  npm i empty-webpack-build-detail-plugin -D\r\n```\r\n\r\n```bash\r\n  yarn add --dev empty-webpack-build-detail-plugin\r\n```\r\n\r\nThis is a [webpack](http://webpack.js.org/) plugin tailored for [emptyd-desgin](https://github.com/FreemenL/emptyd-admin-webpack) and can be used in your project. No difference\r\n\r\n\u003ch2 align=\"center\"\u003eZero Config\u003c/h2\u003e\r\n\r\nThe `empty-webpack-build-detail-plugin` works without configuration.  \r\n\r\n\u003ch2 align=\"center\"\u003eUsage\u003c/h2\u003e\r\n\r\nThe plugin will friendly display compilation details\r\n\r\n**webpack.config.prod.js**\r\n```javascript\r\nconst emptyWebpackBuildDetailPlugin = require(\"empty-webpack-build-detail-plugin\");\r\n\r\nmodule.exports = {\r\n    -entry: 'index.js',\r\n    -output: {\r\n        -path: __dirname + '/dist',\r\n        -filename: 'index_bundle.js'\r\n    -},\r\n    plugins: [\r\n        new emptyWebpackBuildDetailPlugin(options)\r\n    ]\r\n}\r\n\r\n```\r\n\r\n\u003ch2 align=\"center\"\u003eOptions\u003c/h2\u003e\r\n\r\nYou can pass a hash of configuration options to `empty-webpack-build-detail-plugin`.\r\nAllowed values are as follows\r\n\r\n|Name|Type|Default|Description|\r\n|:--:|:--:|:-----:|:----------|\r\n|**`path`**|`{String}`|`compilation.options.context`|The path to use for the compile log|\r\n|**`filename`**|`{String}`|`'compilation-detail.md'`|The file to write the compile log to. Defaults to `compilation-detail.md`|\r\n|**`warnAfterBundleGzipSize`**|`{number}`|512*1024 (Bit)|Maximum limit for bundle files|\r\n|**`warnAfterChunkGzipSize`**|`{number}`|1024*1024 (Bit)|Maximum limit for chunk files|\r\n\r\nHere's an example webpack config illustrating how to use these options\r\n\r\n**webpack.config.js**\r\n```js\r\n{\r\n  entry: 'index.js',\r\n  output: {\r\n    path: __dirname + '/dist',\r\n    filename: 'index_bundle.js'\r\n  },\r\n  plugins: [\r\n    new emptyWebpackBuildDetailPlugin({\r\n      path: path.join(process.cwd(),'log'),\r\n      filename: 'compile-log.md'\r\n    })\r\n  ]\r\n}\r\n```\r\n\r\n\u003ch2 align=\"center\"\u003eMaintainers\u003c/h2\u003e\r\n\r\n\u003ctable\u003e\r\n  \u003ctbody\u003e\r\n    \u003ctr\u003e\r\n      \u003ctd align=\"center\"\u003e\r\n        \u003cimg width=\"150\" height=\"150\"\r\n        src=\"https://www.lgstatic.com/i/image/M00/70/45/CgpEMlm1eoaAT-7PAACXDPj8MC493.jpeg\"\u003e\r\n        \u003c/br\u003e\r\n        \u003ca href=\"https://github.com/freemenL\"\u003efreemenL\u003c/a\u003e\r\n      \u003c/td\u003e\r\n    \u003c/tr\u003e\r\n  \u003ctbody\u003e\r\n\u003c/table\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemenl%2Fempty-webpack-build-detail-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreemenl%2Fempty-webpack-build-detail-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemenl%2Fempty-webpack-build-detail-plugin/lists"}