8000 "Webpack" term capitalization + runtime-only build size extracted to … · ywwhack/vuejs.org@075a015 · GitHub
[go: up one dir, main page]

Skip to content

Commit 075a015

Browse files
gbezyukchrisvfritz
authored andcommitted
"Webpack" term capitalization + runtime-only build size extracted to a variable (vuejs#541)
* just a tiny : position typo fix * w/Webpack typo fixed in installation documentation; runtime-only build size extracted to a constant * **Usage** -> **Usage:** typo fix for uniformity
1 parent 4bc35b0 commit 075a015

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
15081508

15091509
- **Does not expect expression**
15101510

1511-
- **Usage**
1511+
- **Usage:**
15121512

15131513
Skip compilation for this element and all its children. You can use this for displaying raw mustache tags. Skipping large numbers of nodes with no directives on them can also speed up compilation.
15141514

src/guide/installation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ vue_version: 2.0.3
66
dev_size: "188.88"
77
min_size: "62.54"
88
gz_size: "22.86"
9+
ro_gz_size: "16"
910
---
1011

1112
### Compatibility Note
@@ -49,9 +50,9 @@ There are two builds available, the standalone build and the runtime-only build.
4950

5051
- The standalone build includes the compiler and supports the `template` option. **It also relies on the presence of browser APIs so you cannot use it for server-side rendering.**
5152

52-
- The runtime-only build does not include the template compiler, and does not support the `template` option. You can only use the `render` option when using the runtime-only build, but it works with single-file components, because single-file components' templates are pre-compiled into `render` functions during the build step. The runtime-only build is roughly 30% lighter-weight than the standalone build, weighing only 16kb min+gzip.
53+
- The runtime-only build does not include the template compiler, and does not support the `template` option. You can only use the `render` option when using the runtime-only build, but it works with single-file components, because single-file components' templates are pre-compiled into `render` functions during the build step. The runtime-only build is roughly 30% lighter-weight than the standalone build, weighing only {{ro_gz_size}}kb min+gzip.
5354

54-
By default, the NPM package exports the **runtime-only** build. To use the standalone build, add the following alias to your webpack config:
55+
By default, the NPM package exports the **runtime-only** build. To use the standalone build, add the following alias to your Webpack config:
5556

5657
``` js
5758
resolve: {

0 commit comments

Comments
 (0)
0