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.
Files changed (2) hide show
  1. package/conf/dev-server.js +4 -12
  2. package/package.json +1 -1
@@ -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
- var delays = [0, 500, 1500, 3000]
47
- delays.forEach(function (d) {
48
- setTimeout(function () {
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
- }, 2000)
53
+ }, 1000)
62
54
  })
63
55
 
64
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qmzreact",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "前端react本地启动服务和打包工具",
5
5
  "author": {
6
6
  "name": "qmz",