These are chat archives for webpack/webpack/dev

10th
Feb 2018
Turner Hayes
@turnerhayes
Feb 10 02:11
I'm using webpack-dev-middleware, and I'd like to modify the response to root requests before they're sent out, but webpack-dev-middleware seems to swallow those requests--I have a * route to handle requests to /foo but can't handle /. I'm trying to substitute a placeholder that puts a JSON string of logged in user information, and that works fine for non-/ routes but not for /. I could use before() to add a route handler, I suppose, but would that cause any sort of issues?
Turner Hayes
@turnerhayes
Feb 10 02:17
nevermind, before() didn't work