Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / src / scripts / .plugins / strict.ts
Size: Mime:
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)
}