webpack Intro Flashcards

1
Q

What is Webpack?

A

Webpack is a static module bundler for JavaScript applications — it takes all the code from your application and makes it usable in a web browser. Modules are reusable chunks of code built from your app’s JavaScript, node_modules, images, and the CSS styles which are packaged to be easily used in your website.

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

With the flag: –save-dev in the command line.

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

What is an NPM script?

A

An NPM script allows you to enter command line commands and other commands as part of the npm package.

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. Build is defined as an npm script and can be anything you define it as.

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