webpack-intro Flashcards
1
Q
What is Webpack?
A
a tool that lets you bundle javascript files (modules) into one main.js file
this is called bundling
2
Q
How do you add a devDependency to a package?
A
npm install <package> --sav-dev</package>
3
Q
What is an NPM script?
A
terminal commands that perform a set of actions
it is essentially a command line command with a nickname
4
Q
How do you execute Webpack with npm run?
A
npm run
5
Q
wWhat is required for webpack to run?
A
an src with an index.js file