File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ compiler.plugin('compilation', function (compilation) {
43
43
} )
44
44
} )
45
45
46
+ // enable hot-reload and state-preserving
47
+ // compilation error display
48
+ app . use ( hotMiddleware )
49
+
46
50
// proxy api requests
47
51
Object . keys ( proxyTable ) . forEach ( function ( context ) {
48
52
let options = proxyTable [ context ]
@@ -58,10 +62,6 @@ app.use(require('connect-history-api-fallback')())
58
62
// serve webpack bundle output
59
63
app . use ( devMiddleware )
60
64
61
- // enable hot-reload and state-preserving
62
- // compilation error display
63
- app . use ( hotMiddleware )
64
-
65
65
// serve pure static assets
66
66
const staticPath = path . posix . join ( config . dev . assetsPublicPath , config . dev . assetsSubDirectory )
67
67
app . use ( staticPath , express . static ( './static' ) )
You can’t perform that action at this time.
0 commit comments