Skip to content

Commit 4b82fe1

Browse files
committed
docs: minor tweaks
1 parent 9ca77cd commit 4b82fe1

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/build-targets.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,26 @@ You can build a single entry as a library using
1717
vue-cli-service build --target lib --name myLib [entry]
1818
```
1919

20-
The entry can be either a `.js` or a `.vue` file. If no entry is specified, `src/App.vue` will be used.
21-
22-
A lib build outputs:
23-
24-
- `dist/myLib.common.js`
20+
```
21+
File Size Gzipped
2522
26-
A CommonJS bundle for consuming via bundlers (unfortunately, webpack currently does not support ES modules output format for bundles yet)
23+
dist/myLib.umd.min.js 13.28 kb 8.42 kb
24+
dist/myLib.umd.js 20.95 kb 10.22 kb
25+
dist/myLib.common.js 20.57 kb 10.09 kb
26+
dist/myLib.css 0.33 kb 0.23 kb
27+
```
2728

28-
- `dist/myLib.umd.js`
29+
The entry can be either a `.js` or a `.vue` file. If no entry is specified, `src/App.vue` will be used.
2930

30-
A UMD bundle for consuming directly in browsers or with AMD loaders
31+
A lib build outputs:
3132

32-
- `dist/myLib.umd.min.js`
33+
- `dist/myLib.common.js`: A CommonJS bundle for consuming via bundlers (unfortunately, webpack currently does not support ES modules output format for bundles yet)
3334

34-
Minified version of the UMD build.
35+
- `dist/myLib.umd.js`: A UMD bundle for consuming directly in browsers or with AMD loaders
3536

36-
- `dist/myLib.css`
37+
- `dist/myLib.umd.min.js`: Minified version of the UMD build.
3738

38-
Extracted CSS file (can be forced into inlined by setting `css: { extract: false }` in `vue.config.js`)
39+
- `dist/myLib.css`: Extracted CSS file (can be forced into inlined by setting `css: { extract: false }` in `vue.config.js`)
3940

4041
### Web Component
4142

0 commit comments

Comments
 (0)