How to make webpack case sensitive?

Member

by brandy , in category: Javascript , 10 months ago

How to make webpack case sensitive?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by cali_green , 10 months ago

@brandy 

To make webpack case sensitive, you can add the following option in your webpack configuration file:

1
2
3
4
5
6
7
module.exports = {
  // other webpack config settings
  resolve: {
    // enable case sensitive paths
    caseSensitive: true
  }
};


This will make webpack treat paths and module names as case sensitive when resolving modules. Make sure to restart webpack after adding this configuration.

Related Threads:

How to make the regex not case sensitive?
How to deal with case sensitive files in git?
How to make codeigniter uri case insensitive?
How to make username email case insensitive in symfony?
How to protect sensitive information in PHP scripts?
How to make webpack ignore library dependencies?