Webpack / Babel Flashcards
What is Webpack?
Webpack is a package that bundles modules together into a single script for usage in a browser.
How do you add a devDependency to a package?
npm install package-name –save-dev
What is an NPM script?
A shell script stored inside package.json that can be executed by the “npm run” command.
How do you execute Webpack with npm run?
npm run script-name (e.g. build)
What is Babel?
Babel is a compiler that takes JavaScript and JSX code and compiles it to a specified version of JavaScript.
What is a Plug-in?
An add-on that adds a specific feature to an existing piece of software.
What is a Webpack loader?
A Webpack loader preprocesses code before it gets bundled by Webpack.
How can you make Babel and Webpack work together?
Specify in the webpack.config.js file that Babel and the desired plugins should be used before building.