Get Nodemon to restart AFTER Webpack re-build

Ben Grunfeld
3 min readMay 31, 2018

Looking for a great (remote only) React Dev? Visit my profile on LinkedIn and say hi! 😃

Express-Webpack applications like Expack and Rexpack work off of Webpack-Dev-Middleware (WDM) and Webpack-Hot-Middleware (WHM) in development mode, so that we can enjoy in-memory Webpack builds every time you save a file, and Hot Module Reloading so that you don’t have to refresh the browser after every change.

The problem is that WDM and WHM don’t play nice with Webpack 4 and error out in some conditions. In Webpack 4, you can set…

--

--

Ben Grunfeld

I’m a Front End Engineer who loves React, NextJS, and GraphQL. Looking for a developer in #Israel? Contact me at: https://www.linkedin.com/in/bengrunfeld/