Webpack Flashcards

1
Q

What is Webpack?

A

webpack is 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.

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

To add an entry to the “devDependencies” attribute of a package.json file, on the command line, run the following command:

npm install <package-name> --save-dev</package-name>

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 is a convenient way to bundle common shell commands like a set of built-in and custom scripts for your project. They are typically terminal commands or a string of terminal commands that help automate repetitive tasks. In short, NPM scripts are terminal commands that perform a set of actions.

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly