webpack-intro Flashcards
1
Q
What is Webpack?
A
Webpack is a JavaScript module bundler that takes all your source code files and their dependencies and generates one or more bundles, which can be loaded and executed by a web browser.
2
Q
How do you add a devDependency to a package?
A
To add a devDependency to a package, you need to modify the package.json file in your project and include the dependency in the devDependencies section.
3
Q
What is an NPM script?
A
An npm script is a convenient way to bundle common shell commands like a set of built-in and custom scripts for your project.
4
Q
How do you execute Webpack with npm run?
A
You can execute Webpack using npm run by defining a script in your project’s package.json file