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) {
4141 } )
4242} )
4343
44+ // enable hot-reload and state-preserving
45+ // compilation error display
46+ app . use ( hotMiddleware )
47+
4448// proxy api requests
4549Object . keys ( proxyTable ) . forEach ( function ( context ) {
4650 var options = proxyTable [ context ]
@@ -56,10 +60,6 @@ app.use(require('connect-history-api-fallback')())
5660// serve webpack bundle output
5761app . use ( devMiddleware )
5862
59- // enable hot-reload and state-preserving
60- // compilation error display
61- app . use ( hotMiddleware )
62-
6363// serve pure static assets
6464var staticPath = path . posix . join ( config . dev . assetsPublicPath , config . dev . assetsSubDirectory )
6565app . use ( staticPath , express . static ( './static' ) )
You can’t perform that action at this time.
0 commit comments