• webpack
  • 简介
  • 1. 入门
    • 1.1. 目的
    • 1.2. 介绍
    • 1.3. 安装
    • 1.4. 使用
    • 1.5. 使用加载器
    • 1.6. 使用插件
    • 1.7. 开发工具
    • 1.8. 故障排除
  • 2. 教程和例子
    • 2.1. 开始
    • 2.2. 教程
    • 2.3. 实例
  • 3. 引导
    • 3.1. CommonJs
    • 3.2. AMD
    • 3.3. browserify
    • 3.4. 代码分割
    • 3.5. 样式表
    • 3.6. 优化
    • 3.7. 长期缓存
    • 3.8. 如何写加载器
    • 3.9. 如何写插件
    • 3.10. 多个入口
    • 3.11. 库和扩展
    • 3.12. 匀场模块
    • 3.13. 测试
    • 3.14. 构建性能
    • 3.15. 热模块替换
    • 3.16. 比较
  • 4. 集成
    • 4.1. grunt
    • 4.2. gulp
    • 4.3. bower
    • 4.4. karma
  • 5. 列表
    • 5.1. 加载器约定
    • 5.2. 加载器列表
    • 5.3. 插件列表
    • 5.4. 文档列表
    • 5.5. 暗示列表
  • 6. API
    • 6.1. 配置
    • 6.2. CLI
    • 6.3. Node.js API
    • 6.4. 模块API
    • 6.5. 加载器
    • 6.6. 插件
    • 6.7. 上下文
    • 6.8. 解决
    • 6.9. 热模块替换
  • 7. 开发
    • 7.1. 更新日志
    • 7.2. 路线图
    • 7.3. 想法
    • 7.4. 贡献
  • 8. 插件列表
    • 8.1. HTML Webpack Plugin
  • 9. 开发工具
    • 9.1. webpack-dev-server
      • 9.1.1. CLI
    • 9.2. webpack-dev-middleware
  • 10. angularjs
Powered by GitBook

webpack

简单示例

基本用法

  • CommonJs

代码分离

  • Code Splitting
  • Code Splitting with the bundle-loader

多入口点

  • multiple entry points

模块样式

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

库和扩展

  • library option with multiple entry points and UMD
  • using stuff from other scripts

加载器

  • using loaders
  • using coffee-script

上下文

  • 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

高级示例

高级 CommonJs

  • require.resolve

高级代码分离

  • aggressive merging of chunks
  • moving modules between chunks
  • routing with multiple entry points and Code Splitting

多编译

  • using multiple configurations

重复数据删除

  • using the deduplication plugin
  • deduplication with Code Splitting

通用块插件

  • using the a commons chunk

样式表

  • extracting a stylesheet for the css modules
  • + Code Splitting
  • + commons chunk

WebWorker

  • using the webworker-loader

命名块

  • merging chunks with naming