You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in which a return value of `false`_will not_ write the file, and a return value
129
-
of `true`_will_ write the file to disk. eg.
118
+
If `true`, the option will instruct the module to write files to the configured location on disk as specified in your `webpack` config file.
119
+
_Setting `writeToDisk: true` won't change the behavior of the `webpack-dev-middleware`, and bundle files accessed through the browser will still be served from memory._
120
+
This option provides the same capabilities as the [`WriteFilePlugin`](https://github.com/gajus/write-file-webpack-plugin/pulls).
121
+
122
+
This option also accepts a `Function` value, which can be used to filter which files are written to disk.
123
+
The function follows the same premise as [`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_ write the file to disk. eg.
0 commit comments