What is webpack?
A tool that lets you bundle your JavaScript applications (supporting both ESM and Common JS), and it can be extended to support many different assets such as images, fonts, and stylesheets.
How do you add a devDependency to a package?
npm install –save-dev
What is an NPM script?
scripts to automate repetitive tasks
How do you execute Webpack with npm run?
“scripts”: {
“build”: “webpack”,
“test”: “echo "Error: no test specified" && exit 1”
}
Depends on what you are doing… “Build” is the most common.