react-app-rewire-modernizr

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

Usage no npm install needed!

<script type="module">
  import reactAppRewireModernizr from 'https://cdn.skypack.dev/react-app-rewire-modernizr';
</script>

README

react-app-rewire-modernizr

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

npm MIT License Travis

TOCs

Installation

npm i react-app-rewire-modernizr -D

or

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")
)