Merge branch 'master' of git://github.com/tkisme/angular-cn
# Conflicts: # public/docs/ts/latest/guide/webpack.jade # public/docs/ts/latest/tutorial/toh-pt6.jade
This commit is contained in:
commit
ffabcb6241
|
@ -360,6 +360,8 @@ code-example(language="sh" class="code-shell").
|
||||||
|
|
||||||
这些文件很多都很眼熟,它们在其他文档里已经出现过,特别是[_TypeScript配置_](../guide/typescript-configuration.html)和[_npm包_](../guide/npm-packages.html)这两章里。
|
这些文件很多都很眼熟,它们在其他文档里已经出现过,特别是[_TypeScript配置_](../guide/typescript-configuration.html)和[_npm包_](../guide/npm-packages.html)这两章里。
|
||||||
|
|
||||||
|
这些文件很多都很眼熟,它们在其他文档里已经出现过,特别是[_TypeScript配置_](../guide/typescript-configuration.html)和[_npm包_](../guide/npm-packages.html)这两章里。
|
||||||
|
|
||||||
Webpack, the plugins, and the loaders are also installed as packages.
|
Webpack, the plugins, and the loaders are also installed as packages.
|
||||||
They are listed in the updated `packages.json`.
|
They are listed in the updated `packages.json`.
|
||||||
|
|
||||||
|
@ -383,6 +385,8 @@ a#polyfills
|
||||||
|
|
||||||
我们在[_浏览器支持_](browser-support.html)章节里解释过,Angular应用要能在大多数的浏览器里运行,它还需要一些polyfills。
|
我们在[_浏览器支持_](browser-support.html)章节里解释过,Angular应用要能在大多数的浏览器里运行,它还需要一些polyfills。
|
||||||
|
|
||||||
|
我们在[_浏览器支持_](browser-support.html)章节里解释过,Angular应用要能在大多数的浏览器里运行,它还需要一些polyfills。
|
||||||
|
|
||||||
Polyfills should be bundled separately from the application and vendor bundles.
|
Polyfills should be bundled separately from the application and vendor bundles.
|
||||||
Add a `polyfills.ts` like this one to the `src/` folder.
|
Add a `polyfills.ts` like this one to the `src/` folder.
|
||||||
|
|
||||||
|
@ -416,6 +420,8 @@ a(id="common-configuration")
|
||||||
开发、生产、测试等不同的环境通常会分开配置,但实际上这些配置也有很多地方是通用的。
|
开发、生产、测试等不同的环境通常会分开配置,但实际上这些配置也有很多地方是通用的。
|
||||||
|
|
||||||
Gather the common configuration in a file called `webpack.common.js`.
|
Gather the common configuration in a file called `webpack.common.js`.
|
||||||
|
|
||||||
|
我们可以把这些通用的配置收归到一个文件,命名为`webpack.common.js`。
|
||||||
|
|
||||||
我们可以把这些通用的配置收归到一个文件,命名为`webpack.common.js`。
|
我们可以把这些通用的配置收归到一个文件,命名为`webpack.common.js`。
|
||||||
|
|
||||||
|
@ -428,6 +434,8 @@ a#inside-webpack-commonjs
|
||||||
### webpack.common.js解读
|
### webpack.common.js解读
|
||||||
|
|
||||||
Webpack is a NodeJS-based tool that reads configuration from a JavaScript commonjs module file.
|
Webpack is a NodeJS-based tool that reads configuration from a JavaScript commonjs module file.
|
||||||
|
|
||||||
|
Webpack是基于NodeJS的一个工具,它能够从一个*commonjs*规范的JavaScript模块文件里读取配置。
|
||||||
|
|
||||||
Webpack是基于NodeJS的一个工具,它能够从一个*commonjs*规范的JavaScript模块文件里读取配置。
|
Webpack是基于NodeJS的一个工具,它能够从一个*commonjs*规范的JavaScript模块文件里读取配置。
|
||||||
|
|
||||||
|
@ -452,6 +460,8 @@ a#inside-webpack-commonjs
|
||||||
|
|
||||||
[`plugins`](#common-plugins) - 创建插件的实例。
|
[`plugins`](#common-plugins) - 创建插件的实例。
|
||||||
|
|
||||||
|
[`plugins`](#common-plugins) - 创建插件的实例。
|
||||||
|
|
||||||
a#common-entries
|
a#common-entries
|
||||||
:marked
|
:marked
|
||||||
#### _entry_
|
#### _entry_
|
||||||
|
|
Loading…
Reference in New Issue