Skip to content

Commit 2cae59d

Browse files
wouterverweirderSpaceK33z
authored andcommitted
use contentBase from webpack config - fixes #597 (#598)
1 parent 0de52b2 commit 2cae59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/webpack-dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function processOptions(wpOpt) {
184184
if(!options.clientLogLevel)
185185
options.clientLogLevel = argv["client-log-level"];
186186

187-
if(argv["content-base"]) {
187+
if(!options.contentBase && argv["content-base"]) {
188188
options.contentBase = argv["content-base"];
189189
if(/^[0-9]$/.test(options.contentBase))
190190
options.contentBase = +options.contentBase;

0 commit comments

Comments
 (0)