title: Cant find embedded script in HTML in nodemon
body: <p>I am a newbie, experimenting with JS. I was trying to build a small Node.js app, with a JS script embedded in the index.html, but when I run nodemon, it returns 404 for the script and cant find it. The same html page with embedded script works fine with parcel. What am I doing wrong?</p>
  <p>My app.js :</p>
  <pre><code>const express = require('express')
  app = express()
  
  app.get('/', (req, res, next)=&gt;{
      
      res.sendFile('D:/Node.js Folder/My first project/views/index.html')
      
  })
  
  app.get('/add-user', (req, res, next)=&gt;{
      
      res.sendFile('D:/Node.js Folder/My first project/views/add-user.html')
      
  })
  
  app.get('/show-user', (req, res, next)=&gt;{
      
      res.sendFile('D:/Node.js Folder/My first project/views/show-users.html')
      
  })
  
  app.listen(3000)
  </code></pre>
  <p>HTML File :</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Document&lt;/title&gt;
      
  &lt;/head&gt;
  &lt;body class = &quot;text-gray-400&quot;&gt;
      
      &lt;div&gt;
          &lt;div class = &quot;text-3xl&quot;&gt;
              &lt;nav&gt;
                  &lt;h1&gt;
                      Hello! Welcome to the first page!
                  &lt;/h1&gt;
                  &lt;h1 class = &quot;chat-notification-title&quot;&gt;
                      Hello! Welcome to the first page!
                  &lt;/h1&gt;
                  &lt;form&gt;
                      &lt;label for=&quot;cname&quot;&gt;Company Name&lt;/label&gt;&lt;br&gt;
                      &lt;input type=&quot;text&quot; id=&quot;cname&quot; name=&quot;cname&quot;&gt;&lt;br&gt;
                      &lt;label for=&quot;ccode&quot;&gt;Company Code&lt;/label&gt;&lt;br&gt;
                      &lt;input type=&quot;text&quot; id=&quot;ccode&quot; name=&quot;ccode&quot;&gt;
                    &lt;/form&gt; 
                    &lt;button class ='btn-submit' type = &quot;submit&quot;&gt;Add Record&lt;/button&gt;
              &lt;/nav&gt;
          &lt;/div&gt;
      &lt;/div&gt;&lt;script src=&quot;../controller/controller-1.js&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Embedded Script :</p>
  <pre><code>'use strict'
  
  
  console.log(document)
  const button = document.querySelector('.btn-submit')
  console.log(button)
  button.addEventListener('click', function () {
      
      console.log('BUTTON PRESSED')
      alert(&quot;Pressed&quot;)
  })
  </code></pre>