Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate dev/prod configs #182

Closed
manavsehgal opened this issue Dec 28, 2015 · 3 comments
Closed

Separate dev/prod configs #182

manavsehgal opened this issue Dec 28, 2015 · 3 comments

Comments

@manavsehgal
Copy link

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.

@manavsehgal manavsehgal changed the title Separate dev/prod configs. Separate dev/prod configs Dec 28, 2015
@PatrickJS
Copy link
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

@manavsehgal
Copy link
Author

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

@PatrickJS
Copy link
Owner

done via cf4b3f2...master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants