This package has been deprecated

Author message:

abandoned project, please use case-sensitive-paths-webpack-plugin instead

force-case-sensitivity-webpack-plugin

0.2.1 • Public • Published

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

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 who's gist I lifted and formed into this npm module for re-usability.

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i force-case-sensitivity-webpack-plugin

Weekly Downloads

45

Version

0.2.1

License

MIT

Last publish

Collaborators

  • dcousineau