Now in a package.json
you
should have modules enabled:
{
"type" : "module"
}
Let's also place the "scripts"
setting in this file for easy Webpack
running:
{
"type" : "module",
"scripts" : {
"build" : "webpack"
}
}
After that, our bundler can be called with the following command:
npm run build
Edit the package.json
file accordingly.