webpack Flashcards

1
Q

What is Webpack?

A

A module bundler

A tool that lets you bundle JS applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you add a devDependency to a package?

A

npm install package name –save-dev

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly