⊗tlWpBsTB 7 of 55 menu

Test build via Webpack

Let's make a test build. To do this, let's make a test file with an entry point:

alert('it works');

In the terminal, while in the root folder of your site, run the build:

npm run build

As a result, the dist folder should contain a main.js file containing the assembly. This is the default name Webpack gives to the bundle, since we did not specify our own name.

Perform a test build. Check that the built file appears.

enru