docker-rails-react-starter icon indicating copy to clipboard operation
docker-rails-react-starter copied to clipboard

Refactor webpack.config.dev.js and webpack.config.prod.js to use a base configuration file

Open adaam2 opened this issue 7 years ago • 2 comments

When you eject create-react-app, it creates separate webpack configuration files for production and development. In actuality, these files share a lot of commonality. The task is to refactor these configuration files to use a base configuration file called webpack.config.base.js.

An example of the kind of thing we are aiming for can be found at https://gist.github.com/ericclemmons/40a2783313d157d8b448. Of particular note is the merge method that is defined and exported from this module and used in the other configuration files to merge in environment-specific webpack configs

adaam2 avatar Mar 07 '18 15:03 adaam2

Shall I work on this issue?

sanketsingh24 avatar Mar 07 '18 18:03 sanketsingh24

@sanketsingh24 Sure, feel free

adaam2 avatar Mar 07 '18 18:03 adaam2