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

> A webpack plugin to enforce case-sensitive paths when resolving module

Latest version **1.0.1** (published 2022-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @umijs/case-sensitive-paths-webpack-plugin
pnpm add @umijs/case-sensitive-paths-webpack-plugin
yarn add @umijs/case-sensitive-paths-webpack-plugin
bun add @umijs/case-sensitive-paths-webpack-plugin
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-15 |
| First published | 2022-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | stormslowly, xiefengnian, sorrycc, zinkey, yutingzhao1991, chenshuai2144, fan576679268, kuitos, zombiej, peachscript, xiaohuoni |
| Keywords | webpack, plugin, case-sensitive |

## Links

- npm: https://www.npmjs.com/package/@umijs/case-sensitive-paths-webpack-plugin
- npm.io page: https://npm.io/package/@umijs/case-sensitive-paths-webpack-plugin

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-07-15
- 1.0.0 — 2022-07-15

## README

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

[![NPM version](https://img.shields.io/npm/v/@umijs/case-sensitive-paths-webpack-plugin.svg?style=flat)](https://npmjs.org/package/@umijs/case-sensitive-paths-webpack-plugin)
[![NPM downloads](http://img.shields.io/npm/dm/@umijs/case-sensitive-paths-webpack-plugin.svg?style=flat)](https://npmjs.org/package/@umijs/case-sensitive-paths-webpack-plugin)
[![codecov](https://codecov.io/gh/umijs/case-sensitive-paths-webpack-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/umijs/case-sensitive-paths-webpack-plugin)
[![GitHub Actions status](https://github.com/umijs/case-sensitive-paths-webpack-plugin/workflows/CI/badge.svg)](https://github.com/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](https://github.com/Urthen/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.

## Usage

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.

## Thanks

This project is inspired by [case-sensitive-paths-webpack-plugin](https://github.com/Urthen/case-sensitive-paths-webpack-plugin), thanks!

## LICENSE

[MIT](./LICENSE)

---
_Source: https://npm.io/package/@umijs/case-sensitive-paths-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
