Gathering detailed insights and metrics for case-sensitive-paths-webpack-plugin
Gathering detailed insights and metrics for case-sensitive-paths-webpack-plugin
Gathering detailed insights and metrics for case-sensitive-paths-webpack-plugin
Gathering detailed insights and metrics for case-sensitive-paths-webpack-plugin
@types/case-sensitive-paths-webpack-plugin
TypeScript definitions for case-sensitive-paths-webpack-plugin
@umijs/case-sensitive-paths-webpack-plugin
A webpack plugin to enforce case-sensitive paths when resolving module
path-is-inside
Tests whether one path is inside another path
tsconfig-paths-webpack-plugin
Load modules according to tsconfig paths in webpack.
Enforces case sensitive paths in Webpack requires.
npm install case-sensitive-paths-webpack-plugin
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
428 Stars
70 Commits
45 Forks
7 Watching
32 Branches
14 Contributors
Updated on 11 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.8%
1,485,228
Compared to previous day
Last week
3.1%
7,712,896
Compared to previous week
Last month
8.9%
32,417,809
Compared to previous month
Last year
-10%
381,959,733
Compared to previous year
This Webpack plugin enforces the entire path of all required modules match the exact case of the actual path on disk. Using this plugin helps alleviate cases where developers working on OSX, which does not follow strict path case sensitivity, will cause conflicts with other developers or build boxes running other operating systems which require correctly cased paths.
Previous iterations on this same idea provide the basis for this plugin, but unfortunately do not properly check case on the entire path. This plugin fixes that. Example output:
ERROR in ./src/containers/SearchProducts.js 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
@ ./src/containers/SearchProducts.js 9:22-84
npm install --save-dev case-sensitive-paths-webpack-plugin
1var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); 2 3var webpackConfig = { 4 plugins: [ 5 new CaseSensitivePathsPlugin() 6 // other plugins ... 7 ] 8 // other webpack config ... 9}
Want more information? Pass {debug: true}
to the plugin like so:
1new CaseSensitivePathsPlugin({debug: true})
It will output every directory it reads, as well as a sum total of filesystem operations. This is mostly useful for internal debugging of the plugin, but if you find it useful, more power to you.
Check 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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/28 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
69 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More