Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
force-case-sensitivity-webpack-plugin
Advanced tools
A Webpack plugin that forces case sensitivity in imports
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'
npm install --save-dev force-case-sensitivity-webpack-plugin
var ForceCaseSensitivityPlugin = require('force-case-sensitivity-webpack-plugin');
var webpackConfig = {
plugins: [
new ForceCaseSensitivityPlugin()
]
// other webpack config ...
}
Special thanks and credit to Alexandre Kirszenberg who's gist I lifted and formed into this npm module for re-usability.
FAQs
A Webpack plugin that forces case sensitivity in imports
The npm package force-case-sensitivity-webpack-plugin receives a total of 0 weekly downloads. As such, force-case-sensitivity-webpack-plugin popularity was classified as not popular.
We found that force-case-sensitivity-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.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.