@umijs/case-sensitive-paths-webpack-plugin
A webpack plugin to enforce case-sensitive paths when resolving module
Last updated 2 years ago by peachscript .
MIT · Original npm · Tarball · package.json
$ npm install @umijs/case-sensitive-paths-webpack-plugin 
SYNC missed versions from official npm registry.

@umijs/case-sensitive-paths-webpack-plugin

NPM version NPM downloads codecov GitHub Actions status

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+
  2. Ignore paths outside of current project
  3. 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.

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!

LICENSE

MIT

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)

© 2010 - cnpmjs.org x YWFE | Home | YWFE