@umijs/case-sensitive-paths-webpack-plugin
v1.0.1
Published
A webpack plugin to enforce case-sensitive paths when resolving module
Downloads
214,484
Readme
@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:
- Only compatible with Webpack 4+ & Node.js 14+
- Ignore paths outside of current project
- Ignore
node_modules
resources - Ignore
asset/inline
resources - Check each level paths asynchronously & in parallel
- Higher cache utilization
So this plugin has better performance than it.
Usage
Install:
$ npm i @umijs/case-sensitive-paths-webpack-plugin --save-dev
Configure in webpack.config.js
:
const CaseSensitivePathsPlugin = require('@umijs/case-sensitive-paths-webpack-plugin');
module.exports = {
plugins: [
new CaseSensitivePathsPlugin(),
],
};
That's all.
Thanks
This project is inspired by case-sensitive-paths-webpack-plugin, thanks!