webpack Flashcards
1
Q
What is Webpack?
A
module bundler
2
Q
How do you add a devDependency to a package?
What is an NPM script?
A
–save-dev
3
Q
How do you execute Webpack with npm run?
A
npm run build
4
Q
How are ES Modules different from CommonJS modules?
A
ES6 modules are pre-parsed in order to resolve further imports before code is executed. CommonJS modules load dependencies on demand while executing the code
5
Q
What kind of modules can Webpack support?
A
ECMAScript modules, CommonJS modules, AMD modules