Connecting a bundle to a layout in Webpack
In order to be able to run the compiled code, it needs to be connected to the layout. To do this, create the following file in the dist folder:
dist/index.html<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script defer src="main.js"></script>
</head>
<body>
text
</body>
</html>
Задание 1
Make the described file.
Задание 2
Open the created file in your browser and make sure your script works.
Задание 3
Change your script. Rebuild the assembly. Check in the browser that the modified version of the script works.