You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
myMiddleware is definitely loaded correctly - I see here in the console for every response. staticMiddlware is also definitely loaded - I can access the files in my build folder.
However, livereload isn't loaded correctly. I added some console.logs inside node_modules/grunt-express/node_modules/connect-livereload/index.js to see if it's ever called, and it isn't. In node_modules/grunt-express/lib/util.js, I've also added a console.log to rearrangeMiddleware:
My grunt express settings:
I'm using the example under "if you want to use both express and socket.io". I added a console.log to see which middleware is loaded.
and I get the following before the server is started.
myMiddleware
is definitely loaded correctly - I seehere
in the console for every response.staticMiddlware
is also definitely loaded - I can access the files in mybuild
folder.However, livereload isn't loaded correctly. I added some console.logs inside
node_modules/grunt-express/node_modules/connect-livereload/index.js
to see if it's ever called, and it isn't. Innode_modules/grunt-express/lib/util.js
, I've also added a console.log torearrangeMiddleware
:server.stack
isundefined
here, so I don't thinkmiddlewarePriority: -1
is working.The text was updated successfully, but these errors were encountered: