Including a bundle in markup in JavaScript
In order to be able to run the assembled
code, it must be included in the layout. To
do this, in the dist folder we will
make the following file:
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script defer src="bundle.js"></script>
</head>
<body>
text
</body>
</html>
Create the described file.
Open the created file in a browser and make sure your script works.
Modify your script. Rebuild the bundle. Check in your browser that the modified version of the script is working.