Webpack Quiz Questions Flashcards

1
Q

What is Webpack?

A

webpack 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

npm install –save-dev or -D fileName

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

What is an NPM script?

A

An object in JSON format that has a key value pair. The key is the script and the value is the command you want to run

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

Add webpack to the script and use the code npm run build in the CLI

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

How are ES Modules different from CommonJS modules?

A

The keywords are different. Require is NOT in the browser and import IS. ES modules are async

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

What kind of modules can Webpack support?

A

a bunch

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