{"id":13677561,"url":"https://github.com/Urthen/case-sensitive-paths-webpack-plugin","last_synced_at":"2025-04-29T11:31:08.892Z","repository":{"id":5438333,"uuid":"53145619","full_name":"Urthen/case-sensitive-paths-webpack-plugin","owner":"Urthen","description":"Enforces case sensitive paths in Webpack requires.","archived":false,"fork":false,"pushed_at":"2023-01-07T23:23:38.000Z","size":2341,"stargazers_count":428,"open_issues_count":43,"forks_count":45,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-04T08:00:05.843Z","etag":null,"topics":[],"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/Urthen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-04T15:38:59.000Z","updated_at":"2024-08-11T12:20:30.000Z","dependencies_parsed_at":"2023-01-13T13:32:31.298Z","dependency_job_id":null,"html_url":"https://github.com/Urthen/case-sensitive-paths-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Urthen%2Fcase-sensitive-paths-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Urthen%2Fcase-sensitive-paths-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Urthen%2Fcase-sensitive-paths-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Urthen%2Fcase-sensitive-paths-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Urthen","download_url":"https://codeload.github.com/Urthen/case-sensitive-paths-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869994,"owners_count":16555407,"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":[],"created_at":"2024-08-02T13:00:43.959Z","updated_at":"2024-11-11T19:32:06.892Z","avatar_url":"https://github.com/Urthen.png","language":"JavaScript","readme":"Case Sensitive Paths - Webpack Plugin\n==========\n\n[![Build Status](https://travis-ci.org/Urthen/case-sensitive-paths-webpack-plugin.svg?branch=master)](https://travis-ci.org/Urthen/case-sensitive-paths-webpack-plugin)\n[![Known Vulnerabilities](https://snyk.io/test/github/urthen/case-sensitive-paths-webpack-plugin/badge.svg?targetFile=package.json)](https://snyk.io/test/github/urthen/case-sensitive-paths-webpack-plugin?targetFile=package.json)\n[![npm version](https://badge.fury.io/js/case-sensitive-paths-webpack-plugin.svg)](https://badge.fury.io/js/case-sensitive-paths-webpack-plugin)\n[![npm downloads](https://img.shields.io/npm/dw/case-sensitive-paths-webpack-plugin.svg)](https://www.npmjs.com/package/case-sensitive-paths-webpack-plugin)\n![bananas: ripe](https://img.shields.io/badge/bananas-ripe-yellow.svg)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin?ref=badge_shield)\n\nThis Webpack plugin enforces the entire path of all required modules match the exact case of the actual path on disk.\nUsing this plugin helps alleviate cases where developers working on OSX, which does not follow strict path case sensitivity,\nwill cause conflicts with other developers or build boxes running other operating systems which require correctly cased paths.\n\n[Previous](https://gist.github.com/Morhaus/333579c2a5b4db644bd50) [iterations](https://github.com/dcousineau/force-case-sensitivity-webpack-plugin) on this same idea provide the basis for this plugin, but unfortunately do not properly check case on\nthe entire path. This plugin fixes that. Example output:\n\n\u003e ERROR in ./src/containers/SearchProducts.js\n  Module not found: Error: [CaseSensitivePathsPlugin] `/Users/example/yourproject/src/components/searchProducts/searchproducts.js` does not match the corresponding path on disk `/Users/example/yourproject/src/components/searchproducts`\n   @ ./src/containers/SearchProducts.js 9:22-84\n\nInstall\n----\n    npm install --save-dev case-sensitive-paths-webpack-plugin\n\nUsage\n----\n\n```JavaScript\nvar CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');\n\nvar webpackConfig = {\n    plugins: [\n        new CaseSensitivePathsPlugin()\n        // other plugins ...\n    ]\n    // other webpack config ...\n}\n```\n\nWant more information? Pass ```{debug: true}``` to the plugin like so:\n\n```JavaScript\nnew CaseSensitivePathsPlugin({debug: true})\n```\n\nIt will output every directory it reads, as well as a sum total of filesystem operations.\nThis is mostly useful for internal debugging of the plugin, but if you find it useful, more power to you.\n\nDemo\n---\nCheck the `/demo` directory for a working example of the plugin in action, with tests demonstrating the effect of the plugin. See `/demo/README.md` for more.\n\nThanks \u0026 Credit\n----\n* [Daniel Cousineau](https://github.com/dcousineau) who wrote an [earlier version](https://github.com/dcousineau/force-case-sensitivity-webpack-plugin) of this case-sensitivity plugin\n* [Alexandre Kirszenberg](https://github.com/Morhaus) who's [gist](https://gist.github.com/Morhaus/333579c2a5b4db644bd5) formed the basis of both these plugins.\n* [Cameron Brewer](https://github.com/morethanfire) and [Ben Collins](https://github.com/aggieben) who added Windows support.\n* [Christian Lilley](https://github.com/xml) who added a demo/test package.\n* [Lance Eastgate](https://github.com/NorwegianKiwi) who added some internationalization support\n* [Jonathan Kim](https://github.com/jkimbo) and [Dan Abramov](https://github.com/gaearon) who investigated, fixed, and added some tests for a crashing bug.\n* [Jason Quense](https://github.com/jquense) who switched it to properly use the webpack-provided fs object.\n* [Cesare Soldini](https://github.com/caesarsol) who added a test\n* [Kirill Konshin](https://github.com/kirill-konshin) who helped update to Webpack 5\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin?ref=badge_large)\n","funding_links":[],"categories":["Plugins","打包工具","Webpack"],"sub_categories":["Rspack Plugins","webpack 辅助工具、Loader 和插件"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUrthen%2Fcase-sensitive-paths-webpack-plugin/lists"}