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

Add cli option for webpack-config #709

Merged
merged 4 commits into from
Nov 30, 2016

Conversation

sresant
Copy link
Contributor

@sresant sresant commented Oct 11, 2016

Currently do not have a command line option to pass a path to our webpack-config. This creates that option.

@sresant sresant added the bug An issue with the system label Oct 11, 2016
@@ -112,7 +112,7 @@ export default (webpackConfig) => {
}
```

In the `.reactserverrc` file add an option for `webpack-config` that points to that function file and when React Server is setting up Webpack it will call your function with the result of the built in Webpack options, allowing you to make any modifications needed.
In the `.reactserverrc` file add an option for `webpackConfig` that points to that function file and when React Server is setting up Webpack it will call your function with the result of the built in Webpack options, allowing you to make any modifications needed. On the command line use the option `--webpack-config`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gigabo i am the worst at documentation so let me know what you think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might use wording that makes it clear that this is an alternative to the option in the config file. As it stands it's possible to misinterpret this to mean that even with the option in the config file you must also pass a CLI option to trigger its use.

Maybe something like:

This may also be specified on the command line with the --webpack-config=<FILE> option.

Copy link
Collaborator

@doug-wade doug-wade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@doug-wade
Copy link
Collaborator

@sresant I didn't merge this immediately in case @gigabo wanted to take a look; seems like he doesn't. Rebase this onto master and lets get it merged.

Copy link
Contributor

@gigabo gigabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, thanks @sresant! 👍

@gigabo gigabo added enhancement New functionality. and removed bug An issue with the system labels Nov 18, 2016
@gigabo
Copy link
Contributor

gigabo commented Nov 30, 2016

@sresant Please rebase this when you get a chance.

@sresant sresant force-pushed the st-add-cli-option-webpackconfig branch from d22af2b to cd05c7e Compare November 30, 2016 22:36
@sresant sresant merged commit a23199e into redfin:master Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants