A webpack plugin to enforce case-sensitive paths when resolving module
npm install @umijs/case-sensitive-paths-webpack-plugin



A webpack plugin to enforce case-sensitive paths when resolving module, similar to the well-known case-sensitive-paths-webpack-plugin project.
The difference is:
1. Only compatible with Webpack 4+ & Node.js 14+
3. Ignore paths outside of current project
2. Ignore node_modules resources
4. Ignore asset/inline resources
5. Check each level paths asynchronously & in parallel
6. Higher cache utilization
So this plugin has better performance than it.
Install:
``bash`
$ npm i @umijs/case-sensitive-paths-webpack-plugin --save-dev
Configure in webpack.config.js:
`js
const CaseSensitivePathsPlugin = require('@umijs/case-sensitive-paths-webpack-plugin');
module.exports = {
plugins: [
new CaseSensitivePathsPlugin(),
],
};
``
That's all.
This project is inspired by case-sensitive-paths-webpack-plugin, thanks!