Purpose of Webpack
Which of the following best describes the primary purpose of a module bundler like Webpack in web development?
- To combine multiple JavaScript files and assets into a single output bundle
- To create static HTML webpages from markdown files
- To manage server-side databases
- To host websites on a local server
- To analyze and compress image files only
Understanding Entry Point
When configuring Webpack, what does the 'entry' property specify in the configuration file?
- The initial file(s) Webpack should use to start building the dependency graph
- The public directory where bundled files are served from
- The minimum file size for output files
- The command used to launch the development server
- The location of global style sheets
Role of Loaders
In Webpack, what is the main role of a loader, such as when transforming ES6 code or styles during the build?
- To preprocess files and convert them into valid modules for addition to the dependency graph
- To execute server-side code before deployment
- To compress JavaScript files after output
- To create navigation links automatically
- To manage access permissions for modules
Output Property Function
Given a sample Webpack configuration, what does the 'output' property define?
- The path and filename for the generated bundle(s)
- The type of programming language to use in the source files
- The order in which JavaScript functions are executed
- The list of plugins to exclude from the build
- The maximum lines of code allowed per module
Plugins in Webpack
What is the primary function of plugins in a Webpack configuration, such as cleaning the output folder before each build?
- To perform additional tasks and optimizations during the build process
- To replace core dependencies with alternatives
- To directly edit the HTML content of source files
- To run database migrations automatically
- To provide default font styles for web pages