We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a71653 commit 92403e9Copy full SHA for 92403e9
middleware.js
@@ -55,7 +55,13 @@ module.exports = function(compiler, options) {
55
if(typeof options.reporter !== "function") options.reporter = defaultReporter;
56
57
// store our files in memory
58
- var fs = compiler.outputFileSystem = new MemoryFileSystem();
+ var fs;
59
+ var isMemoryFs = compiler.outputFileSystem instanceof MemoryFileSystem;
60
+ if(isMemoryFs) {
61
+ fs = compiler.outputFileSystem;
62
+ } else {
63
+ fs = compiler.outputFileSystem = new MemoryFileSystem();
64
+ }
65
66
compiler.plugin("done", function(stats) {
67
// We are now on valid state
0 commit comments