Webpack-dev-server: Allow writeToDisk as a middleware option

Created on 30 Mar 2018  路  4Comments  路  Source: webpack/webpack-dev-server

  • 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
  • [x] 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:
https://github.com/webpack/webpack-dev-server/blob/ef5598440ebf6847ac02a2d44d7fec70efee0aa1/lib/Server.js#L95

cc/ @shellscape

4 (nice to have) minor feature

Most helpful comment

@Binarytales feel free to send a PR

All 4 comments

I am facing the same issue as well.I was wondering when WDM supports this option why wont WDS support it ? and I end up here . I Would be pleased to see this simple thing shipped in the next release. As mentioned in 'Readme' I believe no features will be accepted until the maintenance work is complete

@VijayKrish93 because webpack-dev-server in maintenance mode (https://github.com/webpack/webpack-dev-server#project-in-maintenance) and only bug/security fixes accepted. My recommendation is migration on webpack-serve. Thanks!

Given that this project is no longer in maintenance mode (https://github.com/webpack/webpack-dev-server/commit/6c1d8d8ea1c06831a4360cdb661cc58bb52d77ec#diff-04c6e90faac2675aa89e2176d2eec7d8) could this issue be reopened as this functionallity would be _very_ handy for me right now.

@Binarytales feel free to send a PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tulika21-zz picture tulika21-zz  路  3Comments

wojtekmaj picture wojtekmaj  路  3Comments

uMaxmaxmaximus picture uMaxmaxmaximus  路  3Comments

MJ111 picture MJ111  路  3Comments

mischkl picture mischkl  路  3Comments