webpack-intro Flashcards

1
Q

What is Webpack?

A

A way to bundle modules for the frontend. An attempt to reduce the files to fewer or down to a single file.

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 i package_name –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 way to assign a command line argument to a name that runs when you type npm run name

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 with the script “build” being added to package.json and the value being “webpack”

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