Skip to content

Commit

Permalink
docs: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 8, 2018
1 parent 9ca77cd commit 4b82fe1
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions docs/build-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,26 @@ You can build a single entry as a library using
vue-cli-service build --target lib --name myLib [entry]
```

The entry can be either a `.js` or a `.vue` file. If no entry is specified, `src/App.vue` will be used.

A lib build outputs:

- `dist/myLib.common.js`
```
File Size Gzipped
A CommonJS bundle for consuming via bundlers (unfortunately, webpack currently does not support ES modules output format for bundles yet)
dist/myLib.umd.min.js 13.28 kb 8.42 kb
dist/myLib.umd.js 20.95 kb 10.22 kb
dist/myLib.common.js 20.57 kb 10.09 kb
dist/myLib.css 0.33 kb 0.23 kb
```

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

A UMD bundle for consuming directly in browsers or with AMD loaders
A lib build outputs:

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

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

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

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

### Web Component

Expand Down

0 comments on commit 4b82fe1

Please sign in to comment.