Commit c7c319e2 authored by Alex Zherdev's avatar Alex Zherdev Committed by Dan Abramov
Browse files

Webpack plugin to detect case mismatch in requires (#266)

parent 5a0669a4
Showing with 4 additions and 1 deletion
+4 -1
...@@ -11,6 +11,7 @@ var path = require('path'); ...@@ -11,6 +11,7 @@ var path = require('path');
var autoprefixer = require('autoprefixer'); var autoprefixer = require('autoprefixer');
var webpack = require('webpack'); var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
var paths = require('./paths'); var paths = require('./paths');
module.exports = { module.exports = {
...@@ -105,6 +106,7 @@ module.exports = { ...@@ -105,6 +106,7 @@ module.exports = {
}), }),
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' }), new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' }),
// Note: only CSS is currently hot reloaded // Note: only CSS is currently hot reloaded
new webpack.HotModuleReplacementPlugin() new webpack.HotModuleReplacementPlugin(),
new CaseSensitivePathsPlugin()
] ]
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment