Webpack Flashcards

1
Q

What is Webpack?

A

A static module bundler for modern JavaScript applications. When webpack processes your application, it internally builds a dependency graph from one or more entry points and then combines every module your project needs into one or more bundles, which are static assets to serve your content from.

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

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

What is an NPM script?

A

A set of built-in and custom scripts defined in the package.json file. Their goal is to provide a simple way to execute 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 build

you’re running it’s script, build

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