Skip to content

Programmatically create and test webpack config #118

Closed
@chrisvfritz

Description

@chrisvfritz

I love that you have an e2e test to confirm that it basically works. 😄 One of the biggest issues I've encountered with templates I maintain is the difficult of making changes as they grow more complex. As you expand and perhaps include optional features, this may be a good time to start producing the webpack configs programmatically, with e2e tests for each individual feature (and combination of features).

A resource that may be helpful is maintainable-webpack-config. It's a very immature experiment in programmatically producing a validated and tested Webpack config. May be useful as inspiration.

Activity

changed the title [-]Full(ish) test coverage for build features[/-] [+]Programmatically create and test webpack config[/+] on Jul 23, 2016
mxstbr

mxstbr commented on Jul 23, 2016

@mxstbr
Contributor

I'm generally against providing an abstraction on top of webpack. There's lots of those projects around that aim to make webpack config "easier", and if it floats your boat you can definitely use them after ejecting!

gaearon

gaearon commented on Jul 29, 2016

@gaearon
Contributor

Thanks for the suggestion! We will stick with a “vanilla” config because people will want to customize it after ejecting, and we don’t want to lock them into using a third-party project for that.

added a commit that references this issue on Jun 6, 2018

Merge pull request facebook#118 from ortonomy/issue166-add-env-example

03ae721
locked and limited conversation to collaborators on Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@chrisvfritz@mxstbr

        Issue actions

          Programmatically create and test webpack config · Issue #118 · facebook/create-react-app