Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 541 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 541 Bytes

react-app-rewire-output

Use react-app-rewired to modify the default output options

How to use

Install

yarn add --dev LuHugo/react-app-rewire-output

OR

npm install --dev LuHugo/react-app-rewire-output

Use in config-overrides.js file

  const rewireOutput = require('react-app-rewire-output');
  module.exports = function override(config, env) {

    if (env === 'production') {
      config = rewireOutput({
        path: './dist'
      })(config, env);
    }
    return config;
  }