Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@umijs/case-sensitive-paths-webpack-plugin

Package Overview
Dependencies
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/case-sensitive-paths-webpack-plugin

A webpack plugin to enforce case-sensitive paths when resolving module

latest
npmnpm
Version
1.0.1
Version published
Maintainers
11
Created
Source

@umijs/case-sensitive-paths-webpack-plugin

NPM version NPM downloads codecov GitHub Actions status

A webpack plugin to enforce case-sensitive paths when resolving module, similar to the well-known case-sensitive-paths-webpack-plugin project.

The difference is:

  • Only compatible with Webpack 4+ & Node.js 14+
  • Ignore paths outside of current project
  • Ignore node_modules resources
  • Ignore asset/inline resources
  • Check each level paths asynchronously & in parallel
  • Higher cache utilization

So this plugin has better performance than it.

Usage

Install:

$ npm i @umijs/case-sensitive-paths-webpack-plugin --save-dev

Configure in webpack.config.js:

const CaseSensitivePathsPlugin = require('@umijs/case-sensitive-paths-webpack-plugin');

module.exports = {
  plugins: [
    new CaseSensitivePathsPlugin(),
  ],
};

That's all.

Thanks

This project is inspired by case-sensitive-paths-webpack-plugin, thanks!

LICENSE

MIT

Keywords

webpack

FAQs

Package last updated on 15 Jul 2022

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