diff --git a/lib/tool.js b/lib/tool.js
index <HASH>..<HASH> 100644
--- a/lib/tool.js
+++ b/lib/tool.js
@@ -204,14 +204,20 @@ class WebpackTool {
     return compiler;
   }
 
-  createDevServerOptions(webpackConfig, devServer) {
+  createDevServerOptions(webpackConfig, devServer = {}) {
     const { output } = webpackConfig;
+    const { headers = {}, index, methods, mimeTypes, publicPath, writeToDisk } = devServer;
     return {
+      index,
+      writeToDisk,
+      mimeTypes,
+      methods,
+      publicPath: publicPath || output.publicPath,
       headers: {
         'x-webpack': 'easywebpack',
         'cache-control': 'max-age=0',
+        ...headers,
       },
-      publicPath: output.publicPath
     };
   }
fix: add webpack-dev-middleware missing options