Skip to content

Separate dev/prod configs #182

Closed
Closed

Description

@manavsehgal

Can we add separate dev/prod config settings which apply depending on context?

Currently production settings need to be commented out (debug:true) or changed (devtool: 'eval') in webpack.config between dev/prod scenarios. This is not ideal.

There are two prevalent solutions for separate webpack dev/prod configs.
(1) Using npm webpack-merge and environment variables to TARGET dev/prod in same config file. SurviveJS implementation
(2) Using two separate webpack.config files for dev/prod. This is more common solution on most projects I have studied.

Activity

  1. changed the title [-]Separate dev/prod configs.[/-] [+]Separate dev/prod configs[/+] on Dec 28, 2015
  2. PatrickJS commented on Dec 28, 2015

    @PatrickJS
    Owner

    I have this and #174 done locally. I'm trying to make it easier and I may end up making 3 webpack configs development, production, and test

  3. manavsehgal commented on Dec 28, 2015

    @manavsehgal
    Author

    @gdi2290 Many thanks for your prompt response and action! Looking forward to pulling this change.

  4. PatrickJS commented on Jan 3, 2016

    @PatrickJS
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions