webpack-intro Flashcards

1
Q

What is Webpack?

A

Webpack is a JavaScript module bundler that takes all your source code files and their dependencies and generates one or more bundles, which can be loaded and executed by a web browser.

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 a devDependency to a package, you need to modify the package.json file in your project and include the dependency in the devDependencies section.

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.

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

You can execute Webpack using npm run by defining a script in your project’s package.json file

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