Skip to content

Commit

Permalink
core: allow devServer.contentBase to change;
Browse files Browse the repository at this point in the history
- in the RARE case this is needed
  • Loading branch information
lukeed committed Oct 10, 2018
1 parent 21f263a commit 3ac6011
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/cli/lib/watch.js
Expand Up @@ -93,7 +93,6 @@ module.exports = function (src, opts) {
let server = new Server(c, Object.assign(dev, {
publicPath,
inline: true,
contentBase: src,
host: hostname,
// @see webpack-dev-server/pull/1486
// noInfo: true,
Expand Down
1 change: 1 addition & 0 deletions packages/core/webpack/index.js
Expand Up @@ -107,6 +107,7 @@ module.exports = function (src, config, opts) {
stats: false, // quiet
overlay: true,
compress: true,
contentBase: src,
historyApiFallback: true,
disableHostCheck: true,
watchOptions: {
Expand Down

0 comments on commit 3ac6011

Please sign in to comment.