https://github.com/ctrlplusb/react-app-rewire-modernizr
Adds the modernizr-loader to your react-app-rewired config.
https://github.com/ctrlplusb/react-app-rewire-modernizr
Last synced: about 2 months ago
JSON representation
Adds the modernizr-loader to your react-app-rewired config.
- Host: GitHub
- URL: https://github.com/ctrlplusb/react-app-rewire-modernizr
- Owner: ctrlplusb
- License: mit
- Created: 2018-03-07T08:32:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T18:46:17.000Z (over 8 years ago)
- Last Synced: 2025-09-19T03:58:47.069Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-app-rewire-modernizr
Adds [`modernizr-loader`](https://github.com/peerigon/modernizr-loader) to your [`react-app-rewired`](https://github.com/timarney/react-app-rewired) config.
[](http://npm.im/react-app-rewire-modernizr)
[](http://opensource.org/licenses/MIT)
[](https://travis-ci.org/ctrlplusb/react-app-rewire-modernizr)
## TOCs
- [Installation](#installation)
- [Usage](#usage)
## 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:
```javascript
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`](https://github.com/peerigon/modernizr-loader) docs for more information.