webpack Intro Flashcards
1
Q
What is Webpack?
A
Webpack is a static module bundler for JavaScript applications — it takes all the code from your application and makes it usable in a web browser. Modules are reusable chunks of code built from your app’s JavaScript, node_modules, images, and the CSS styles which are packaged to be easily used in your website.
2
Q
How do you add a devDependency to a package?
A
With the flag: –save-dev in the command line.
3
Q
What is an NPM script?
A
An NPM script allows you to enter command line commands and other commands as part of the npm package.
4
Q
How do you execute Webpack with npm run?
A
npm run build. Build is defined as an npm script and can be anything you define it as.