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.
2
Q
How do you add a devDependency to a package?
A
npm i package_name –save-dev
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
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”