Skip to content

Allow writeToDisk as a middleware option #1357

Closed
@tech4him1

Description

@tech4him1
  • Operating System: Win10
  • Node Version: 9.2.0
  • NPM Version: Yarn 1.5.1
  • webpack Version: 4.4.1
  • webpack-dev-server Version: 3.1.1
  • This is a bug
  • This is a modification request

For Features; What is the motivation and/or use-case for the feature?

writeToDisk was added to webpack-dev-middleware as an option. Can it be passed through so that the option can be set directly on the dev server?

Assuming the option can just be passed through, it should be a very simple change:

this.middleware = webpackDevMiddleware(compiler, Object.assign({}, options, wdmOptions));

cc/ @shellscape

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions