Webpack Flashcards
1
Q
What is Webpack?
A
It is a module bundler
2
Q
How do you add a devDependency
to a package?
A
When running npm i
you would add the --save-dev
flag
3
Q
What is an NPM Script?
A
A bundle of shell commands that can be run by using npm run <scriptname>
4
Q
How do you execute Webpack with npm run
?
A
One would use npm run <scriptname>
where scriptname is whatever script in package.json
that calls webpack. In the example it is named build