Skip to content

Commit

Permalink
Webpack plugin to detect case mismatch in requires (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzherdev authored and gaearon committed Jul 29, 2016
1 parent 5a0669a commit c7c319e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -105,6 +106,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()
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c7c319e

Please sign in to comment.