Webpack Flashcards
1
Q
What is Webpack?
A
A static module bundler for modern JavaScript applications. When webpack processes your application, it internally builds a dependency graph from one or more entry points and then combines every module your project needs into one or more bundles, which are static assets to serve your content from.
A module bundler
2
Q
How do you add a devDependency to a package?
A
npm install –save-dev
3
Q
What is an NPM script?
A
A set of built-in and custom scripts defined in the package.json file. Their goal is to provide a simple way to execute repetitive tasks
4
Q
How do you execute Webpack with npm run?
A
npm run build
you’re running it’s script, build