npm Flashcards
1
Q
What is a package?
A
self contained code that you can import
2
Q
What happens when you add a dependency to a package with npm?
A
Downloads it -> Puts it in the node-modules directory -> Checks for other dependencies -> Downloads them -> Updates package Lock
3
Q
What is webpack?
A
Allows you to bundle files
4
Q
How do you add a devDependency to a package?
A
npm i -D ……
5
Q
What is a NPM script?
A
6
Q
How do you execute Webpack with npm run?
A
npm run nameOfFile