Setting up Webpack build run
Now in the package.json file you should have the following modules enabled:
{
"type" : "module"
}
Let's also place the "scripts" setting in this file for convenient Webpack launch:
{
"type" : "module",
"scripts" : {
"build" : "webpack"
}
}
After this, our collector can be called with the following command:
npm run build
Make the appropriate edits to the package.json file.