webpack/babel Flashcards

1
Q

What is Webpack?

A

webpack allows you to bundle javascript apps/modules to run in your project

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

npm install -D

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

What is an NPM script?

A

bundle shell commands for project to run all at once

npm run build

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 build

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?

What kind of modules can Webpack support?

A

ES modules have built in operators to import and export

ES6 modules

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

what is babel

A

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments

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

What is a Plug-in?

A

a software component that adds a specific feature to an existing computer program. plug-ins enables customization

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

What is a Webpack loader?

A

transforms javascript files

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

How can you make Babel and Webpack work together?

A

webpack and babel

connect together using babel loader

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