From 4fe93085fc2e6419fc4543cc771d1de3cca2b342 Mon Sep 17 00:00:00 2001 From: Alex Zherdev Date: Thu, 28 Jul 2016 22:55:39 +0300 Subject: [PATCH] Webpack plugin to detect case mismatch in requires --- config/webpack.config.dev.js | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 7224589238f..e4f8069a24c 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -11,6 +11,7 @@ var path = require('path'); var autoprefixer = require('autoprefixer'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); +var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); var paths = require('./paths'); module.exports = { @@ -87,6 +88,7 @@ module.exports = { }), new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' }), // Note: only CSS is currently hot reloaded - new webpack.HotModuleReplacementPlugin() + new webpack.HotModuleReplacementPlugin(), + new CaseSensitivePathsPlugin() ] }; diff --git a/package.json b/package.json index c4999d12558..0173836268f 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "babel-preset-es2016": "6.11.3", "babel-preset-react": "6.11.1", "babel-runtime": "6.11.6", + "case-sensitive-paths-webpack-plugin": "1.1.2", "chalk": "1.1.3", "cross-spawn": "4.0.0", "css-loader": "0.23.1",