Repository URL to install this package:
|
Version:
1.2.7 ▾
|
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'
import { Configuration, Options } from '../../typings'
/**
* Watcher doesn't work well if you mistype casing in a path so we use
* a plugin that prints an error when you attempt to do this.
* See https://github.com/facebookincubator/create-react-app/issues/240
*/
export default function strictPlugin(config: Configuration, options: Options) {
const plugin = new CaseSensitivePathsPlugin()
config.plugins.push(plugin)
}