https://github.com/dab0mb/react-app-webpack-env
https://github.com/dab0mb/react-app-webpack-env
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dab0mb/react-app-webpack-env
- Owner: DAB0mB
- License: mit
- Created: 2021-03-04T00:16:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T00:22:06.000Z (over 5 years ago)
- Last Synced: 2025-03-02T16:13:43.933Z (over 1 year ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-app-webpack-env
With `react-app-webpack-env` you can force the Webpack config environment of `react-scripts` to `development`. This means that you will be able to deploy an unminified version of your `react-app` to your cloud application platform of choice e.g. Heroku or Netlify. This is useful for development purposes.
## Usage
This package usually goes with `react-app-rewired`, so you would need to install a couple of things:
$ yarn add react-app-rewired react-app-webpack-env
Then when defining the `config-overrides` file (if you're unfamiliar with this file, please see [reference](https://github.com/timarney/react-app-rewired#readme)), add the following code:
```js
import reactAppWebpackEnv from 'react-app-webpack-env';
reactAppWebpackEnv('development');
module.exports = () => {
// Your overrides...
};
```
## LICENSE
MIT