webpack Flashcards

1
Q

What is Webpack?

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?

What is an NPM script?

A

–save-dev

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

How do you execute Webpack with npm run?

A

npm run build

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

How are ES Modules different from CommonJS modules?

A

ES6 modules are pre-parsed in order to resolve further imports before code is executed. CommonJS modules load dependencies on demand while executing the code

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

What kind of modules can Webpack support?

A

ECMAScript modules, CommonJS modules, AMD modules

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