Webpack Flashcards
1
Q
What is Webpack?
A
Webpack bundles multiple modules into a single JavaScript file.
2
Q
How do you add a devDependency to a package?
A
npm install –save-dev module name
3
Q
What is an NPM script?
A
something that automates repetitive tasks in package.json file, it is a command line command under script in the package.json
4
Q
How do you execute Webpack with npm run?
A
npm run script name
5
Q
How are ES Modules different from CommonJS modules?
A
import/export for ES6 Modules
modules.export for CommonJS
import used require for Common JS
6
Q
What kind of modules can Webpack support?
A
webpack supports the following module types natively: ECMAScript modules. CommonJS modules. AMD modules.