Skip to content

Merge Webpack config to single file #4030

Closed
@langpavel

Description

@langpavel

Is this a bug report?

No, it's refactoring proposal

Expected Behavior

Environment specific behavior should be configured in one single webpack.config.js file

Actual Behavior

There are two configuration files webpack.config.dev.js and webpack.config.prod.js

Why?

  • Mostly the only reason for ejecting is need to customize WebPack config file.
  • Both files must be edited in near same way. This can be source of code duplication and mistakes

How?

  • simply use config/env.js
  • use new Webpack 4 mode

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions