webpack, the

  • production
  • unbiased
  • flexible
  • extensible
  • open source -------- module bundler.

--

webpack--批量的,公正的的,灵活的,可扩展的,模块捆绑器

--

Welcome to the webpack documentation!

欢迎查阅webpack文档

--

Browse the contents in the left sidebar

你可以从左边浏览到相关的文档目录。

--

If you are new to webpack, you may want to start by reading this page or the Getting started section on the left.

如果你对webpack没有经验,你可能需要首先阅读这一页或者左边上的入门指南模块。

--

Plugins

webpack has a rich plugin interface. Most of the features are internal plugins using this interface. This makes webpack very flexible.

--

插件

webpack 有一个丰富的插件接口。webpack大部分功能都是内部插件利用这个接口实现的。这个接口使webpack非常的灵活。

--

Performance

webpack uses async I/O and has multiple caching levels. This makes webpack fast and incredibly fast on incremental compilation.

--

性能

webpack 使用异步 I/O,并且具有多个缓存级别。这使得 webpack 快速并在增量编译上极快。

--

Loaders

webpack supports pre-processing files via loaders. This allows you to bundle any static resource not only javascript. You can easily write your own loaders running in node.js.

--

加载器

webpack 支持通过加载器预处理文件。这允许你打包任何静态资源文件而不仅仅是javascript。你能容易写你自己的加载器运行在node.js中。

--

Support

webpack supports AMD and CommonJs module styles. It performs clever static analysis on the AST of your code. It even has an evaluation engine to evaluate simple expressions. This allows you to support most existing libraries.

--

支持

webapck 支持 AMD 和 CommonJs 模块风格。它在你代码的抽象语法树上执行智能的静态分析。 它甚至有一个运算引擎去运算简单的表达式。这允许你支持大部分现存的库。

--

Code Splitting

webpack allows to split your codebase into chunks. Chunks are loaded on demand. This reduces initial loading time.

--

代码拆分

webpack 允许拆分你的代码库进多个块中。块按需被加载。这缩小了初始加载时间。

--

Optimizations

webpack can do many optimizations to reduce the output size. It also cares about request caching by using hashes.

--

优化

webpack 能做许多优化去减少输出大小。它还通过使用哈希值关心请求缓存。

--

Development Tools

webpack supports SourceUrls and SourceMaps for simple debugging. It can watch your files and comes with a development middleware and a development server for automatic reloading.

--

开发工具

webpack为简单调试支持SourceUrls 和 SourceMaps.它可以监视你的文件并且为了自动重新加载伴随一个开发中间件和开发服务器。

--

Multiple targets

webpack's main target is the web, but it also supports generating bundles for WebWorkers and node.js.

--

多目标

webpack 的主要目标是 web,但它也支持给 WebWorkers 和 node.js 打包。