doc_webpack
  • FAQ
  • Home
  • README
  • SUMMARY
  • TODO
  • Usage with Visual Studio
  • Amd
  • Api in modules
  • Build performance
  • Changelog
  • Cli
  • Code splitting
  • Commonjs
  • Comparison
  • Configuration
  • Contents
  • Context
  • Dev tools
  • 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
  • Hot module replacement with webpack
  • Hot module replacement
  • How to write a loader
  • How to write a plugin
  • Ideas
  • Installation
  • Internal webpack plugins
  • Library and externals
  • List of hints
  • List of loaders
  • List of plugins
  • List of tutorials
  • Loader conventions
  • Loaders
  • Long term caching
  • Motivation
  • Multiple entry points
  • Node.js api
  • Optimization
  • Plugins
  • Resolving
  • Roadmap
  • Shimming modules
  • Stylesheets
  • Testing
  • Troubleshooting
  • Usage with bower
  • Usage with grunt
  • Usage with gulp
  • Usage with karma
  • Usage
  • Using loaders
  • Using plugins
  • Webpack dev middleware
  • Webpack dev server
  • Webpack for browserify users
  • What is webpack
 
doc_webpack
  • Docs »
  • Examples

简单的例子

Basic usage

  • CommonJs

Code Splitting

  • Code Splitting
  • Code Splitting with the bundle-loader

multiple entry points

  • multiple entry points

module styles

  • labeled modules
  • CommonJs, AMD and labeled modules mixed
  • Component modules

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
Next Previous

Built with MkDocs using a theme provided by Read the Docs.