# force-case-sensitivity-webpack-plugin

> A Webpack plugin that forces case sensitivity in imports

Latest version **0.2.1** (published 2016-09-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install force-case-sensitivity-webpack-plugin
pnpm add force-case-sensitivity-webpack-plugin
yarn add force-case-sensitivity-webpack-plugin
bun add force-case-sensitivity-webpack-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-09-20 |
| First published | 2015-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | Daniel Cousineau |
| Maintainers | dcousineau |
| Keywords | webpack, plugin, case sensitive, import |

## Links

- npm: https://www.npmjs.com/package/force-case-sensitivity-webpack-plugin
- Repository: https://github.com/dcousineau/force-case-sensitivity-webpack-plugin
- Homepage: https://github.com/dcousineau/force-case-sensitivity-webpack-plugin#readme
- Issues: https://github.com/dcousineau/force-case-sensitivity-webpack-plugin/issues
- npm.io page: https://npm.io/package/force-case-sensitivity-webpack-plugin

## Dependencies (1)

- [glob](https://npm.io/package/glob.md) ^7.0.3

## 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

- 0.2.1 (latest) — 2016-09-20
- 0.2.0 — 2016-09-19
- 0.1.1 — 2015-12-22
- 0.1.0 — 2015-11-06

## README

# force-case-sensitivity-webpack-plugin

This is a plugin for Webpack that forces import statements to match case with
the target file on the disk.

Issues arise when developers (like myself) work on OSX machines with
case-insensitive file systems and deploy to Linux servers that do have
case-sensitive file systems. This plugin will break the build when a difference
in case is discovered:

> Module not found: Error: ForceCaseSensitivityPlugin: 'ThisFile.js' does not match the corresponding file on disk 'thisfile.js'

## Install

```
npm install --save-dev force-case-sensitivity-webpack-plugin
```

## Usage

```javascript
var ForceCaseSensitivityPlugin = require('force-case-sensitivity-webpack-plugin');

var webpackConfig = {
    plugins: [
        new ForceCaseSensitivityPlugin()
    ]
    // other webpack config ...
}
```

## Thanks & Credit

Special thanks and credit to [Alexandre Kirszenberg](https://github.com/Morhaus)
who's [gist](https://gist.github.com/Morhaus/333579c2a5b4db644bd5) I lifted and
formed into this npm module for re-usability.

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