Closed
Description
- Operating System: Mac OS
- Node Version: 8.15.0
- NPM Version: 6.4.1
- webpack Version: 4.29.6
- webpack-dev-server Version: 3.3.0
- This is a bug
- This is a modification request
Code
// webpack.config.js
devServer: {
open: ['google chrome', '--incognito']
}
Expected Behavior
devServer.open
accepts an array of strings as per the as per the open
documentation
https://www.npmjs.com/package/open (formerly https://www.npmjs.com/package/opn)
In this case, open chrome in an incognito tab,
Actual Behavior
Anything other than a string is dropped
webpack-dev-server/lib/utils/status.js
Lines 45 to 59 in 21687c3
For Features; What is the motivation and/or use-case for the feature?
We would like to automatically open incognito tabs for our devs, as part of our setup and teardown for webpack-dev-server
is updating the hosts file, and chrome caches DNS.
If this is something that would be accepted I could open a PR.