|**[`writeToDisk`](#writetodisk)** | `Boolean\|Function` | `false` | Instructs the module to write files to the configured location on disk as specified in your `webpack`configuration.|
|**[`outputFileSystem`](#outputfilesystem)** | `Object` | [`memfs`](https://github.com/streamich/memfs) | Set the default file system which will be used by webpack as primary destination of generated files. |
Pleaseseethedocumentationfor[`mime-types`](https://github.com/jshttp/mime-types) for more information.
###publicPath
Type:`String`
Default:`output.publicPath`(fromaconfiguration)
Thepublicpaththatthemiddlewareisboundto.
_BestPractice:usethesame`publicPath` defined in your webpack config. For more information about `publicPath`,pleasesee[thewebpackdocumentation](https://webpack.js.org/guides/public-path)._
If`true`, the option will instruct the module to write files to the configured location on disk as specified in your `webpack`configfile.
_Setting`writeToDisk: true` won't change the behavior of the `webpack-dev-middleware`,andbundlefilesaccessedthroughthebrowserwillstillbeservedfrommemory._
Thefunctionfollowsthesamepremiseas[`Array#filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) in which a return value of `false` _will not_ write the file, and a return value of `true`_will_writethefiletodisk.eg.
Fastifyinteropwillrequiretheuseof`fastify-express` instead of `middie` for providing middleware support. As the authors of `fastify-express`recommend,thisshouldonlybeusedasastopgapwhilefullFastifysupportisworkedon.