WDIO Webpack Dev Server Service
This service starts Webpack Dev Server for you to run WebdriverIO against.
npm install wdio-webpack-dev-server-service --save-dev
This assumes you have:
- set up WebdriverIO.
- set up Webpack Serve - the example will use
webpack.dev.config.jsas the configuration file.
Note: If you need support for webpack-dev-server (which is in maintenance mode) and Webpack 2 or 3, use
Add the Webpack Dev Server service to your WebdriverIO services list:
Options are set directly on your WebdriverIO config as well, e.g.
Either the absolute path to your Webpack configuration, or (a function generating) your actual Webpack configuration.
The port the Dev Server should be run on. You'll want to set this same port in the
baseUrl option of your WebdriverIO configuration.