Webpack Flashcards

1
Q

What is Webpack?

A

It is a module bundler

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

When running npm i you would add the --save-dev flag

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

What is an NPM Script?

A

A bundle of shell commands that can be run by using npm run <scriptname>

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

One would use npm run <scriptname> where scriptname is whatever script in package.json that calls webpack. In the example it is named build

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