force-case-sensitivity-webpack-plugin

A Webpack plugin that forces case sensitivity in imports

abandoned project, please use case-sensitive-paths-webpack-plugin instead
Last updated 10 years ago by dcousineau .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install force-case-sensitivity-webpack-plugin 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.2.1                                ...           latest (10 years ago)

4 Versions

  • 0.2.1 [deprecated]           ...           10 years ago
  • 0.2.0 [deprecated]           ...           10 years ago
  • 0.1.1 [deprecated]           ...           10 years ago
  • 0.1.0 [deprecated]           ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |