{"id":19443752,"url":"https://github.com/aretecode/webpack-split-plugin","last_synced_at":"2026-05-13T08:33:36.372Z","repository":{"id":65379302,"uuid":"91681053","full_name":"aretecode/webpack-split-plugin","owner":"aretecode","description":"custom, easier code splitting in webpack","archived":false,"fork":false,"pushed_at":"2017-06-13T11:27:38.000Z","size":1595,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-07T22:18:46.982Z","etag":null,"topics":["chunk","custom","plugin","split","webpack"],"latest_commit_sha":null,"homepage":"","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/aretecode.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":"2017-05-18T10:34:22.000Z","updated_at":"2022-08-28T06:38:45.000Z","dependencies_parsed_at":"2023-01-20T08:45:45.583Z","dependency_job_id":null,"html_url":"https://github.com/aretecode/webpack-split-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/aretecode%2Fwebpack-split-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fwebpack-split-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fwebpack-split-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fwebpack-split-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aretecode","download_url":"https://codeload.github.com/aretecode/webpack-split-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240627960,"owners_count":19831600,"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":["chunk","custom","plugin","split","webpack"],"created_at":"2024-11-10T15:44:05.432Z","updated_at":"2026-05-13T08:33:31.350Z","avatar_url":"https://github.com/aretecode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤸🔌 webpack-split-plugin\n\n\u003e split bundle into multiple pieces with custom specifications\n\nextension of [CommonsChunkPlugin](https://github.com/webpack/webpack/blob/cd1cd29fba46bd0133db0ca89acbe6c6c0240323/lib/optimize/CommonsChunkPlugin.js)\n\n![output](https://user-images.githubusercontent.com/4022631/27008494-4b562c38-4e27-11e7-83a1-7cd720516b8e.gif)\n\n### 📦 install\n\n```bash\nyarn add webpack-split-plugin --dev\nnpm i webpack-split-plugin --save-dev\n```\n\n```js\nconst WebpackSplitPlugin = require('webpack-split-plugin')\n\n// also exported for convenience\nconst {CollectionManager, custom, match, version, log} = WebpackSplitPlugin\n```\n\n## [📘 example](https://github.com/aretecode/webpack-split-plugin/example-demo)\n\n```js\nplugins: [\n  new WebpackSplitPlugin({\n    // * required\n    name: 'eh',\n    filename: '[name]-split.js',\n\n    // [optional], very verbose output\n    debug: true,\n\n    // [optional], automatically figures it out after first run\n    totalSize: '1937kb', // 1.937mb\n  }),\n],\n```\n\n## [📘 example custom](https://github.com/aretecode/webpack-split-plugin/example-demo/webpack.config.custom.js)\n\n```js\nnew WebpackSplitPlugin({\n  debug: 'verbose',\n  filename: '[name]-split.js',\n  custom: custom.splits({\n    // order of specificity\n    eh: ['moment'],\n    react: ['react'],\n    moose: [/noop/],\n    igloo: [file =\u003e (/plx/).test(file)],\n    canada: ['src/*.js'],\n  }),\n})\n```\n\n\n### [🔗 resources](./docs/resources.md)\n### [🔬 tests](./test)\n### [📖 🚧 WIP docs](./docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Fwebpack-split-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faretecode%2Fwebpack-split-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Fwebpack-split-plugin/lists"}