{"id":20341069,"url":"https://github.com/hoschi/customization-resolver-webpack-plugin","last_synced_at":"2026-05-11T06:56:26.133Z","repository":{"id":136672667,"uuid":"80410884","full_name":"hoschi/customization-resolver-webpack-plugin","owner":"hoschi","description":"Makes file imported by relative path overridable from within customization folder","archived":false,"fork":false,"pushed_at":"2017-03-15T12:34:05.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-15T11:38:52.971Z","etag":null,"topics":["plugin","theming","webpack"],"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/hoschi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-30T10:13:47.000Z","updated_at":"2024-09-22T22:47:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe60efb5-f1b7-458b-9106-feaa26d24784","html_url":"https://github.com/hoschi/customization-resolver-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoschi%2Fcustomization-resolver-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoschi%2Fcustomization-resolver-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoschi%2Fcustomization-resolver-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoschi%2Fcustomization-resolver-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoschi","download_url":"https://codeload.github.com/hoschi/customization-resolver-webpack-plugin/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241867909,"owners_count":20033817,"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":["plugin","theming","webpack"],"created_at":"2024-11-14T21:25:40.255Z","updated_at":"2026-05-11T06:56:21.111Z","avatar_url":"https://github.com/hoschi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# customization-resolver-webpack-plugin\n[![NPM version][npm-image]][npm-url]\n[![Codecov Status][codecov-image]][codecov-url]\n\n\u003e Makes file imported by relative path overridable from within customization folder\n\n## Install\n\nThis is for webpack 2.x, for webpack 1.x see\n[this version](https://github.com/hoschi/customization-resolver-webpack-plugin/tree/v1.0.1  ).\n\n```sh\nnpm install --save-dev customization-resolver-webpack-plugin\n```\n\n## Usage with webpack\n\n```js\nimport path from 'path';\nimport CustomizationResolverPlugin from 'customization-resolver-webpack-plugin';\n\nlet dir_base = path.resolve(__dirname, '../');\nlet dir_customize = path.resolve(dir_base, '../../customizedSrc/');\nlet dir_src = path.resolve(dir_base, 'src/');\n\nlet webpackConfig = {\n    entry:'...',\n    target:'web',\n    // other webpack config stuff\n    resolve: {\n        modules: [\n            dir_customize,\n            dir_src,\n        ],\n        plugins: [\n            new CustomizationResolverPlugin({\n                customizationDir: dir_customize,\n                sourceDir: dir_src\n            })\n        ],\n    },\n}\n```\n\n## Configuration\n\n* `sourceDir` *required* String: absolute path to source directory, containing files which can be overriden\n* `customizationDir` *required* String: absolute path to customization directory, containing files which can override source files\n* `excludePath` String/RegEx: RegEx which matches `path` property of request object which should not be resolved, defaults to 'node_modules'\n* `excludeRequest` String/RegEx: RegEx which matches `request` property of request object which should not be resolved, defaults to 'node_modules'\n* `jsFileExtension` String: JS file extension (with dot) which gets added to file names without file extension, defaults to '.js'\n* `isCompleteFileName` String/RegEx: RegEx which matches `request` property of request object to identify filenames with a valid extension. E.g. `/\\.scss$/` to match SCSS files.\n\n## Run with debug output\n\nSay you start your bundling process with `webpack ./app.js`. Use\n`NODE_DEBUG=customization-resolver-webpack-plugin webpack ./app.js` to see\ndebug output of this plugin.\n\n## License\n\n MIT ©\n\n[npm-url]: https://npmjs.org/package/customization-resolver-webpack-plugin\n[npm-image]: https://img.shields.io/npm/v/customization-resolver-webpack-plugin.svg?style=flat\n\n[codecov-url]: https://codecov.io/github/hoschi/customization-resolver-webpack-plugin\n[codecov-image]: https://img.shields.io/codecov/c/github/hoschi/customization-resolver-webpack-plugin.svg?style=flat\n\n[download-image]: http://img.shields.io/npm/dm/customization-resolver-webpack-plugin.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoschi%2Fcustomization-resolver-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoschi%2Fcustomization-resolver-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoschi%2Fcustomization-resolver-webpack-plugin/lists"}