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

contentBase in webpack.config is ignored #597

Closed
wouterverweirder opened this issue Sep 7, 2016 · 1 comment
Closed

contentBase in webpack.config is ignored #597

wouterverweirder opened this issue Sep 7, 2016 · 1 comment

Comments

@wouterverweirder
Copy link
Contributor

webpack: 2.x
webpack-dev-server: 2.1.0-beta.3
OSX 10.x

Current behavior:

When specifying a contentBase in your webpack.config file (and running webpack-dev-server from the command line, without any arguments), it is ignored & overwritten with the current path

Expected/desired behavior:

contentBase from the config file should be used

This bug was introduced by commit be9efda

@MoOx
Copy link

MoOx commented Sep 7, 2016

The thing is: the default config defined by yarg create an argv["content-base"] so indeed, when you define contentBase via webpack.config.js devServer section, your option is overridden by the code testing the argv.

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