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 @@ -41,6 +41,10 @@ compiler.plugin('compilation', function (compilation) {
41
41
} )
42
42
} )
43
43
44
+ // enable hot-reload and state-preserving
45
+ // compilation error display
46
+ app . use ( hotMiddleware )
47
+
44
48
// proxy api requests
45
49
Object . keys ( proxyTable ) . forEach ( function ( context ) {
46
50
var options = proxyTable [ context ]
@@ -56,10 +60,6 @@ app.use(require('connect-history-api-fallback')())
56
60
// serve webpack bundle output
57
61
app . use ( devMiddleware )
58
62
59
- // enable hot-reload and state-preserving
60
- // compilation error display
61
- app . use ( hotMiddleware )
62
-
63
63
// serve pure static assets
64
64
var staticPath = path . posix . join ( config . dev . assetsPublicPath , config . dev . assetsSubDirectory )
65
65
app . use ( staticPath , express . static ( './static' ) )
You can’t perform that action at this time.
0 commit comments