Socket
Socket
Sign inDemoInstall

force-case-sensitivity-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

force-case-sensitivity-webpack-plugin

A Webpack plugin that forces case sensitivity in imports


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 20 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc