You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug What is the current behavior?
webpack-dev-server fails on startup with the options mentioned in the title:
contentBase set to false with historyApiFallback on
The exact error is:
TypeError: root path required
at Function.serveStatic [as static] (.../node_modules/serve-static/index.js:40:11)
at Object.contentBaseFiles (.../node_modules/webpack-dev-server/lib/Server.js:269:32)
at Server.<anonymous> (.../node_modules/webpack-dev-server/lib/Server.js:331:20)
at Array.forEach (native)
at new Server (.../node_modules/webpack-dev-server/lib/Server.js:330:40)
at startDevServer (.../node_modules/webpack-dev-server/bin/webpack-dev-server.js:379:12)
at processOptions (.../node_modules/webpack-dev-server/bin/webpack-dev-server.js:317:3)
at Object.<anonymous> (.../node_modules/webpack-dev-server/bin/webpack-dev-server.js:441:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
This should just work. It looks in the code like you are assuming that historyApiFallback must point to a file but it works great (and it my opinion makes more sense) to have it point to a server path, in this case, the same path as my base public path.
Please mention your webpack and Operating System version.
webpack 2.2.1
OS X El Capitan
The text was updated successfully, but these errors were encountered:
Thanks for your clear bug report.There are several tests for contentBase and historyApiFallback, but apparently none that tests this combination. Would you be willing to do a PR? I can maybe look at it this weekend, but not sure.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
webpack-dev-server fails on startup with the options mentioned in the title:
contentBase set to false with historyApiFallback on
The exact error is:
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
This should just work. It looks in the code like you are assuming that historyApiFallback must point to a file but it works great (and it my opinion makes more sense) to have it point to a server path, in this case, the same path as my base public path.
Please mention your webpack and Operating System version.
webpack 2.2.1
OS X El Capitan
The text was updated successfully, but these errors were encountered: