webpack Flashcards
1
Q
What is Webpack?
A
A module bundler
A tool that lets you bundle JS applications
2
Q
How do you add a devDependency to a package?
A
npm install package name –save-dev
3
Q
What is an NPM script?
A
an npm command that you define, that when called runs whatever you assigned to the script
A way to bundle common shell commands for a project
NPM scripts are a way to bundle shell commands. Typically, they are a string of commands, which would be entered the terminal, or they are part of a pipeline in a CI/CD.
4
Q
How do you execute Webpack with npm run?
A
npm run scriptName
Add “build”: “webpack” to your package.json scripts property then use command – npm run build