ctrlplusb / react-app-rewire-modernizr

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:JavaScript 100.0%