⊗tlWpBsBL 8 of 55 menu

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:

<!DOCTYPE html> <html> <head> <title>test</title> <script defer src="main.js"></script> </head> <body> text </body> </html>

Make the described file.

Open the created file in your browser and make sure your script works.

Change your script. Rebuild the assembly. Check in the browser that the modified version of the script works.

enru