Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Aug 8, 2019. It is now read-only.
webpack
/
docs
Public archive
Notifications
You must be signed in to change notification settings
Fork
122
Star
1.4k
Code
Issues
33
Pull requests
3
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
examples
Jump to bottom
Matt Meshulam edited this page
Oct 27, 2016
·
12 revisions
simple examples
Basic usage
CommonJS
Code Splitting
Code Splitting
Code Splitting with the bundle-loader
multiple entry points
multiple entry points
module styles
CommonJs, AMD and labeled modules mixed
library and externals
library option with multiple entry points and UMD
using stuff from other scripts
loaders
using loaders
using coffee-script
context
dynamic require
dynamic require with a single chunk
dynamic require with a single chunk (AMD)
TODO: dynamic require with a chunk per module
i18n
using the i18n plugin
advanced examples
advanced CommonJs
require.resolve
advanced Code Splitting
aggressive merging of chunks
moving modules between chunks
routing with multiple entry points and Code Splitting
multi compiler
using multiple configurations
deduplication
using the deduplication plugin
deduplication with Code Splitting
commons chunk plugin
using the a commons chunk
stylesheet
extracting a stylesheet for the css modules
+ Code Splitting
+ commons chunk
WebWorker
using the webworker-loader
named chunks
merging chunks with naming
Wiki pages
Pages
55
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
amd
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
api in modules
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
build performance
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
changelog
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
cli
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
code splitting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
commonjs
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
comparison
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
configuration
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
contents
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
context
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
dev tools
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
examples
simple examples
Basic usage
Code Splitting
multiple entry points
module styles
library and externals
loaders
context
i18n
advanced examples
advanced CommonJs
advanced Code Splitting
multi compiler
deduplication
commons chunk plugin
stylesheet
WebWorker
named chunks
Loading
FAQ
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
hot module replacement
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
hot module replacement with webpack
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
how to write a loader
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
how to write a plugin
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ideas
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
internal webpack plugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
library and externals
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
list of hints
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
list of loaders
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
list of plugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
list of tutorials
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
loader conventions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
loaders
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
long term caching
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Motivation
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
multiple entry points
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
node.js api
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
optimization
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
plugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
resolving
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
roadmap
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
shimming modules
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Stylesheets
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
testing
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
TODO
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
troubleshooting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
usage
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
usage with bower
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
usage with grunt
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
usage with gulp
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
usage with karma
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Usage with Visual Studio
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
using loaders
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
using plugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
webpack dev middleware
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
webpack dev server
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
webpack for browserify users
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
webpack options
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
webpack plugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
what is webpack
Uh oh!
There was an error while loading.
Please reload this page
.
Show 40 more pages…
Clone this wiki locally
You can’t perform that action at this time.