Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 31, 2017
1 parent c75cb46 commit d7fcf2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ And then run `vue build index.js` and go to `http://localhost:4000`
$ vue build index.js --prod
```

If your want to directly test a component without manually create a Vue instance for it, try:
If you want to directly test a component without manually create a Vue instance for it, try:

```bash
$ vue build Component.vue
```

<details><summary>How does this work?</summary>
When the input file ends with `.vue` extension, we use a [default app entry](/lib/default-entry.js) to load the given component, otherwise we treat it as a normal webpack entry. For jsx component which ends with `.js` extension, you can enable this behavior manually by adding `--mount`.
When the input file ends with `.vue` extension, we use a [default app entry](/lib/default-entry.es6) to load the given component, otherwise we treat it as a normal webpack entry. For jsx component which ends with `.js` extension, you can enable this behavior manually by adding `--mount`.
</details>

**To distribute component:**
Expand Down Expand Up @@ -99,7 +99,7 @@ Used as the path to webpack config file, eg: `--webpack webpack.config.js`

Directly use as webpack config.

Note that we use [webpack-merge](https://github.com/survivejs/webpack-merge) to merge you webpack config with default webpack config.
Note that we use [webpack-merge](https://github.com/survivejs/webpack-merge) to merge your webpack config with default webpack config.

#### autoprefixer

Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = {
}
```

This way, you fetch `/api/todos` in your Vue app, the development server will proxy your request to `http://localhost:8080/api/todos`.
This way, when you fetch `/api/todos` in your Vue app, the development server will proxy your request to `http://localhost:8080/api/todos`.

We use [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) under the hood, so the `proxy` option can also be an object:

Expand Down

0 comments on commit d7fcf2d

Please sign in to comment.