webpack/babel Flashcards
What is Webpack?
webpack allows you to bundle javascript apps/modules to run in your project
How do you add a devDependency to a package?
npm install –save-dev
npm install -D
What is an NPM script?
bundle shell commands for project to run all at once
npm run build
How do you execute Webpack with npm run?
npm run build
How are ES Modules different from CommonJS modules?
What kind of modules can Webpack support?
ES modules have built in operators to import and export
ES6 modules
what is babel
Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments
What is a Plug-in?
a software component that adds a specific feature to an existing computer program. plug-ins enables customization
What is a Webpack loader?
transforms javascript files
How can you make Babel and Webpack work together?
webpack and babel
connect together using babel loader