Entry and Output
Defines the starting point and output bundle of the application.
CoreConceptLab
30 Concepts Explained
Defines the starting point and output bundle of the application.
Extends Webpack with additional functionality.
Breaks bundles into smaller chunks for optimized loading.
Eliminates unused code to reduce bundle size.
Loads modules asynchronously using import().
Maps compiled code back to original source for debugging.
Updates modules without reloading the page.
Uses content hashes for long-term caching of assets.
Main configuration file defining Webpack behavior.
Defines the environment for bundling (web, node, electron).
Allows importing CSS files into JavaScript modules.
Specifies where and how bundled files are emitted.
Sets build mode to development, production, or none.
Supports ES Modules, CommonJS, and AMD formats.
Automatically rebuilds bundles when files change.
Provides live reloading and HMR during development.
Injects environment values via DefinePlugin.
Injects CSS styles directly into the DOM.
Represents all modules and their dependencies internally.
Supports multi-page applications with multiple entries.
Handles images, fonts, and other static assets.
Converts small files into Base64 inline strings.
Extracts CSS into separate files for production builds.
Visualizes bundle size and composition using analyzer tools.
Defines the starting point of the application for bundling.
Reduces file size using tools like Terser.
Uses placeholders like [name] and [contenthash] for dynamic naming.
Controls how modules are resolved (extensions, aliases).
Emits files to the output directory.
Compresses and optimizes images during build.