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:
dist/index.html<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script defer src="bundle.js"></script>
</head>
<body>
text
</body>
</html>
Задание 1
Create the described file.
Задание 2
Open the created file in a browser and make sure your script works.
Задание 3
Modify your script. Rebuild the bundle. Check in your browser that the modified version of the script is working.