Webpack Flashcards

1
Q

What is Webpack?

A

Dependency that allows you to bundle JS and other files for usage in the web browser

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

-D or npm install –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

Convenient way to bundle common shell commands

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

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

Declarative syntax - import export keywords,
curly braces,
ES modules are built in by language. CommonJS was built by the community

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
ECMAScript modules
CommonJS modules
AMD modules
Asset modules
WebAssembly modules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Babel?

A

JS compiler that transforms JS code

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

What is a Plug-in?

A

Software component that adds specific feature to an existing program

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

What is a Webpack loader?

A

Webpack’s fancy word for a plugin - takes file, loads, and transforms it to a different language

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

How can you make Babel and Webpack work together?

A

babel-loader

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