From 726cf8284026b59a2ce7e81294f57f1762163f8c Mon Sep 17 00:00:00 2001 From: Miles Steele Date: Sun, 2 Sep 2018 15:20:08 -0400 Subject: [PATCH] docs(configuration) Update minimal config example (#2482) I'm not the first person to forget this import https://github.com/webpack/webpack-dev-server/issues/823 --- src/content/configuration/dev-server.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/configuration/dev-server.md b/src/content/configuration/dev-server.md index a7ff8d3017fd..ddd9bbed1668 100644 --- a/src/content/configuration/dev-server.md +++ b/src/content/configuration/dev-server.md @@ -24,6 +24,8 @@ T> Options that are compatible with [webpack-dev-middleware](https://github.com/ This set of options is picked up by [webpack-dev-server](https://github.com/webpack/webpack-dev-server) and can be used to change its behavior in various ways. Here's a simple example that gzips and serves everything from our `dist/` directory: ```js +var path = require('path'); + module.exports = { //... devServer: {