{"id":18763464,"url":"https://github.com/fabiandev/split-by-path-webpack-plugin","last_synced_at":"2025-10-26T15:31:50.923Z","repository":{"id":57367608,"uuid":"61157022","full_name":"fabiandev/split-by-path-webpack-plugin","owner":"fabiandev","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-20T13:34:41.000Z","size":7,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-10T21:28:40.719Z","etag":null,"topics":["javascript","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiandev.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":"2016-06-14T21:30:13.000Z","updated_at":"2017-08-29T23:31:07.000Z","dependencies_parsed_at":"2022-08-23T20:10:23.330Z","dependency_job_id":null,"html_url":"https://github.com/fabiandev/split-by-path-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fsplit-by-path-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fsplit-by-path-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fsplit-by-path-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fsplit-by-path-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiandev","download_url":"https://codeload.github.com/fabiandev/split-by-path-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223566873,"owners_count":17166397,"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":["javascript","webpack","webpack-plugin"],"created_at":"2024-11-07T18:26:14.338Z","updated_at":"2025-10-26T15:31:45.886Z","avatar_url":"https://github.com/fabiandev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Split By Path Webpack Plugin\n\nThis plugin will split your entry bundle into any number of arbitrarily defined smaller bundles.\n\n\u003e Note: For webpack v1.x use version 0.x of this package, 1.x for webpack v2.x\n\n## Credits\n\nThis plugin is based on [split-by-name-webpack-plugin](https://github.com/soundcloud/split-by-name-webpack-plugin).\n\n### How?\n\nConfiguration of the plugin is simple. You instantiate the plugin with a single option: `buckets` which should be an\narray of objects, each containing the keys `name` and `regex`. Any modules which are in your entry chunk which match the\nbucket's regex (first matching bucket is used), are then moved to a new chunk with the given name.\n\nCreating a 'catch-all' bucket is not necessary: anything which doesn't match one of the defined buckets will be left in\nthe original chunk.\n\n### Example\n\n```js\nvar SplitByPathPlugin = require('split-by-path-webpack-plugin');\nmodule.exports = {\n  entry: {\n    app: 'app.js'\n  },\n  output: {\n    path: __dirname + '/dist',\n    filename: \"[name]-[chunkhash].js\",\n    chunkFilename: \"[name]-[chunkhash].js\"\n  },\n  plugins: [\n    new SplitByPathPlugin({\n      buckets: [{\n        name: 'vendor',\n        regex: /(node_modules\\/|src\\/vendor\\/)/\n      }]\n    })\n  ]\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiandev%2Fsplit-by-path-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiandev%2Fsplit-by-path-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiandev%2Fsplit-by-path-webpack-plugin/lists"}