webpack Flashcards
What is Webpack?
a tool that lets you bundle your JavaScript files (module) and it can be extended to support many different assets such as images, fonts and stylesheets
How do you add a devDependency to a package?
npm install –save-dev “name”
What is an NPM script?
automate repetitive tasks
How do you execute Webpack with npm run?
npm run “name of script”
How are ES Modules different from CommonJS modules?
ES6 modules - asynchronous, pre-parsed to resolve imports before code is executed
CommonJS modules - synchronous load dependencies on demand while executing the code
What kind of modules can Webpack support?
CommonJS Modules, Asynchronous Module Definition (AMD) and ECMAScript modules