Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including wdio-webpack-dev-server-service with all npm packages installed. Try it out:

require("webdriverio/package.json"); // webdriverio is a peer dependency. var wdioWebpackDevServerService = require("wdio-webpack-dev-server-service")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

wdio-webpack-dev-server-service v2.0.2

Start a Webpack Dev Server to run WebdriverIO against

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:

Note: If you need support for webpack-dev-server (which is in maintenance mode) and Webpack 2 or 3, use webpack-dev-server-service@1.2.0.

Add the Webpack Dev Server service to your WebdriverIO services list:

// wdio.conf.js
export.config = {
  // ...
  services: ['webpack-dev-server'],
  // ...

Options are set directly on your WebdriverIO config as well, e.g.

// wdio.conf.js
export.config = {
  // ...
  webpackConfig: require(''),
  webpackPort: 8080,
  // ...



Type: String | Function | Object

Default: webpack.config.js

Either the absolute path to your Webpack configuration, or (a function generating) your actual Webpack configuration.


Type: Number

Default: 8080

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free