pts.push(
          (process.env.HOT)
            ? 'http://localhost:' + port + '/dist/main.dev.js'
            : './dist/main.prod.js'
        );

        document.write(
          scripts
            .map(script => `<script defer src="${script}"><\/script>`)
            .join('')
        );
      }
    </script>
  </body>
</html>
