webpack Flashcards

1
Q

What is Webpack?

A

a tool that lets you bundle your JavaScript files (module) and it can be extended to support many different assets such as images, fonts and stylesheets

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 “name”

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

What is an NPM script?

A

automate repetitive tasks

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 “name of script”

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

ES6 modules - asynchronous, pre-parsed to resolve imports before code is executed
CommonJS modules - synchronous load dependencies on demand while executing the code

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

CommonJS Modules, Asynchronous Module Definition (AMD) and ECMAScript modules

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