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

Allow specifying different configs for build and watch tasks? #41

Closed
UltCombo opened this issue Oct 12, 2015 · 2 comments
Closed

Allow specifying different configs for build and watch tasks? #41

UltCombo opened this issue Oct 12, 2015 · 2 comments

Comments

@UltCombo
Copy link
Member

Currently, the same configs are used for the build (deploy) and watch (development) tasks. The reasoning behind this is to avoid unexpected bugs that emerge from discrepancies between development and production code.

However, there are quite a few Babel and Webpack optimizations that make sense to use in production only, as they may hide important debugging information and slow down the build process.

I'm conflicted now. Perhaps it is worth exposing two config sets and let users decide whether they want to provide the same options to the build and watch tasks or not.

/cc @jaydson

@UltCombo
Copy link
Member Author

Okay, here's a compromise.

The build and watch core logic will be moved to another package, that is, each of these will be an independent function that takes a set of options. The generator will make use of this package, by default it will pass the same options to both functions but it will be easily customizable by the user.

This will be done after the v3 release, otherwise we will never reach the mythical 3.0.0 milestone.

@UltCombo
Copy link
Member Author

Superseded by #40

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

No branches or pull requests

1 participant