title: Nodemon and webpack-dev-server hot reload not working under WSL 2 after Windows 10 resinstall
body: <p>A few days ago I re-installed Windows 10. I am developing full stack web app with express as backend and React.js as frontend. I am using nodemon to realod the server and webpack-dev-server for the frontend. Worth mentioning is that I am using WSL2. I noticed that nodemon has no reaction upon saving a file. I had to manually type <code>rs</code> to reload. At first thought it is a problem with nodemon. Looked for similar question here, but all I found was <code>--watch</code>, which did not help. Not that I've tried webpack and the issue persists I am clueless. Here is some useful info:
  <strong>webpack command</strong>:
  <code>webpack-dev-server --host 0.0.0.0 --config ./webpack.config.js --mode development</code>.</p>
  <p><strong>webpack.config.js</strong>:</p>
  <pre><code>module.exports = {
      entry: [&quot;babel-polyfill&quot;, &quot;./app/index.jsx&quot;],
      module: {
          rules: [
              {
                  test: /\.(js|jsx)$/,
                  exclude: /node_modules/,
                  use: [&quot;babel-loader&quot;],
              },
              { test: /\.css$/, use: [&quot;style-loader&quot;, &quot;css-loader&quot;] },
              {
                  test: /\.(jpg|png|svg)$/,
                  loader: &quot;file-loader&quot;,
                  options: {
                      name: &quot;[path][name].[hash].[ext]&quot;,
                  },
              },
          ],
      },
      resolve: {
          alias: {
              components: __dirname + &quot;/app/components&quot;,
              reducers: __dirname + &quot;/app/reducers&quot;,
              constants: __dirname + &quot;/app/constants&quot;,
              actions: __dirname + &quot;/app/actions&quot;,
              store: __dirname + &quot;/app/store&quot;,
              styles: __dirname + &quot;/app/styles&quot;,
              assets: __dirname + &quot;/app/assets/&quot;,
              api: __dirname + &quot;/app/api/&quot;,
          },
          enforceExtension: false,
          extensions: [&quot;.js&quot;, &quot;.jsx&quot;],
      },
      output: {
          path: __dirname + &quot;/public&quot;,
          publicPath: &quot;/&quot;,
          filename: &quot;index.js&quot;,
      },
      devServer: {
          contentBase: &quot;./public&quot;,
          port: 8080,
      },
  };
  </code></pre>
  <p>Also both of these are working fine on Linux laptop and were fine before the re-installation.</p>