You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,14 @@ And then run `vue build index.js` and go to `http://localhost:4000`
32
32
$ vue build index.js --prod
33
33
```
34
34
35
-
If your want to directly test a component without manually create a Vue instance for it, try:
35
+
If you want to directly test a component without manually create a Vue instance for it, try:
36
36
37
37
```bash
38
38
$ vue build Component.vue
39
39
```
40
40
41
41
<details><summary>How does this work?</summary>
42
-
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`.
42
+
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`.
43
43
</details>
44
44
45
45
**To distribute component:**
@@ -99,7 +99,7 @@ Used as the path to webpack config file, eg: `--webpack webpack.config.js`
99
99
100
100
Directly use as webpack config.
101
101
102
-
Note that we use [webpack-merge](https://github.com/survivejs/webpack-merge) to merge you webpack config with default webpack config.
102
+
Note that we use [webpack-merge](https://github.com/survivejs/webpack-merge) to merge your webpack config with default webpack config.
103
103
104
104
#### autoprefixer
105
105
@@ -154,7 +154,7 @@ module.exports = {
154
154
}
155
155
```
156
156
157
-
This way, you fetch `/api/todos` in your Vue app, the development server will proxy your request to `http://localhost:8080/api/todos`.
157
+
This way, when you fetch `/api/todos` in your Vue app, the development server will proxy your request to `http://localhost:8080/api/todos`.
158
158
159
159
We use [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) under the hood, so the `proxy` option can also be an object:
0 commit comments