npm webpack Flashcards
1
Q
What is Webpack?
A
JavaScript module bundler. It combines js files in src folder to make main.js in dist/public folder
2
Q
How do you add a devDependency to a package?
A
npm install –save-dev packageName
3
Q
What is an NPM script?
A
“build”: “webpack”
It is used to do desired npm run action with a keyword
4
Q
How do you execute Webpack with npm run?
A
“build”: “webpack”