Webpack-dev-server: feature: Multiple base directories for webpack-dev-server

Created on 11 Sep 2016  路  2Comments  路  Source: webpack/webpack-dev-server

I need to serve multiple base directories like browsersync or polymer-cli do, so I can serve a polymer element that has two basedirectories (cwd and bower_components)

As far as I can tell, only one basedirectorie is supported in webpack-dev-server

Most helpful comment

I followed the guidelines and there was no reference in the documentation that contentBase takes a array as well. So it was a feature request. Please make it clear in the api and documentation that contentBase can take a string or array. I will test this now and reopen the issue if it's not the case.

All 2 comments

contentBase supports an array of directories.

Also, please follow the issue template next time, it's there for a reason.

I followed the guidelines and there was no reference in the documentation that contentBase takes a array as well. So it was a feature request. Please make it clear in the api and documentation that contentBase can take a string or array. I will test this now and reopen the issue if it's not the case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

da2018 picture da2018  路  3Comments

Jack-Works picture Jack-Works  路  3Comments

eyakcn picture eyakcn  路  3Comments

daryn-k picture daryn-k  路  3Comments

uMaxmaxmaximus picture uMaxmaxmaximus  路  3Comments