Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

case-sensitive-paths-webpack-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Issues
File Explorer

Advanced tools

case-sensitive-paths-webpack-plugin

Enforces module path case sensitivity in Webpack

    2.4.0latest

Version published
Maintainers
1
Weekly downloads
6,637,481
decreased by-21.79%

Weekly downloads

Changelog

Source

v2.4.0

Readme

Source

Case Sensitive Paths - Webpack Plugin

Build Status Known Vulnerabilities npm version npm downloads bananas: ripe FOSSA Status

This Webpack plugin enforces the entire path of all required modules match the exact case of the actual path on disk. Using this plugin helps alleviate cases where developers working on OSX, which does not follow strict path case sensitivity, will cause conflicts with other developers or build boxes running other operating systems which require correctly cased paths.

Previous iterations on this same idea provide the basis for this plugin, but unfortunately do not properly check case on the entire path. This plugin fixes that. Example output:

ERROR in ./src/containers/SearchProducts.js Module not found: Error: [CaseSensitivePathsPlugin] /Users/example/yourproject/src/components/searchProducts/searchproducts.js does not match the corresponding path on disk /Users/example/yourproject/src/components/searchproducts @ ./src/containers/SearchProducts.js 9:22-84

Install

npm install --save-dev case-sensitive-paths-webpack-plugin

Usage

var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); var webpackConfig = { plugins: [ new CaseSensitivePathsPlugin() // other plugins ... ] // other webpack config ... }

Want more information? Pass {debug: true} to the plugin like so:

new CaseSensitivePathsPlugin({debug: true})

It will output every directory it reads, as well as a sum total of filesystem operations. This is mostly useful for internal debugging of the plugin, but if you find it useful, more power to you.

Demo

Check the /demo directory for a working example of the plugin in action, with tests demonstrating the effect of the plugin. See /demo/README.md for more.

Thanks & Credit

License

FOSSA Status

Keywords

FAQs

What is case-sensitive-paths-webpack-plugin?

Enforces module path case sensitivity in Webpack

Is case-sensitive-paths-webpack-plugin popular?

The npm package case-sensitive-paths-webpack-plugin receives a total of 5,555,357 weekly downloads. As such, case-sensitive-paths-webpack-plugin popularity was classified as popular.

Is case-sensitive-paths-webpack-plugin well maintained?

We found that case-sensitive-paths-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 22 Feb 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc