qmzreact 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/conf/dev-server.js +4 -12
- package/package.json +1 -1
package/conf/dev-server.js
CHANGED
|
@@ -43,22 +43,14 @@ compiler.hooks.done.tap('AfterCompiler', function(stats) {
|
|
|
43
43
|
// receive a single publish. Send the reload multiple times with a few
|
|
44
44
|
// retries to increase the chance the client receives it.
|
|
45
45
|
if (previousNodeStatus === 'rebuild' || process.env.NODE_STATUS === 'rebuild') {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
try {
|
|
50
|
-
hotMiddleware.publish({ action: 'reload' })
|
|
51
|
-
} catch (e) {
|
|
52
|
-
// swallow any errors from publish and continue retries
|
|
53
|
-
console.error('hotMiddleware.publish error:', e && e.message)
|
|
54
|
-
}
|
|
55
|
-
}, d)
|
|
56
|
-
})
|
|
46
|
+
setTimeout(function () {
|
|
47
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
48
|
+
}, 2500)
|
|
57
49
|
// reset captured status so subsequent compilations behave normally
|
|
58
50
|
previousNodeStatus = ''
|
|
59
51
|
}
|
|
60
52
|
console.log('webpack \x1b[1mcompiled \x1B[32mfinished \x1B[37min',new Date().toLocaleString(),'\x1b[0m')
|
|
61
|
-
},
|
|
53
|
+
}, 1000)
|
|
62
54
|
})
|
|
63
55
|
|
|
64
56
|
|