Home

Awesome

react-app-rewire-modernizr

Adds modernizr-loader to your react-app-rewired config.

npm MIT License Travis

TOCs

Installation

Note: modernizr is a peer dependency so you also need to install it.

npm install modernizr
npm install react-app-rewire-modernizr -D

or

yarn add modernizr
yarn add react-app-rewire-modernizr -D

Usage

Within your react-app-rewire config:

const modernizrPlugin = require('react-app-rewire-modernizr')

// Adds support for modernizr
config = modernizrPlugin(
  config,
  env,
  path.resolve(__dirname, "path/to/.modernizrrc")
)

See the modernizr-loader docs for more information.