Skip to content

Commit 2a1a85f

Browse files
committed
📝 Update README
1 parent 1637ba7 commit 2a1a85f

File tree

1 file changed

+35
-50
lines changed

1 file changed

+35
-50
lines changed

README.md

Lines changed: 35 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,10 @@
1111
<p align="center">This plugin is meant to provide all <a href="https://www.npmjs.com/package/http-proxy-middleware">http-proxy-middleware</a> options to vue-cli.</p>
1212

1313
<p align="center">
14-
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin">
15-
<img
16-
src="https://img.shields.io/npm/v/vue-cli-proxy-plugin.svg?style=flat-square"
17-
alt="NPM Version"
18-
>
19-
</a>
20-
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin">
21-
<img
22-
src="https://img.shields.io/npm/dw/vue-cli-proxy-plugin.svg?style=flat-square"
23-
alt="NPM Downloads"
24-
>
25-
</a>
26-
<a
27-
href="https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/blob/master/LICENSE">
28-
<img
29-
src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"
30-
alt="License"
31-
>
32-
</a>
14+
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin"><img src="https://img.shields.io/npm/v/vue-cli-proxy-plugin.svg?style=flat-square" alt="NPM Version"></a>
15+
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin"><img src="https://img.shields.io/npm/dw/vue-cli-proxy-plugin.svg?style=flat-square" alt="NPM Downloads"></a>
16+
<a href="https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
17+
<a href="https://github.com/vuejs/vue-cli/issues/2320"><img src="https://img.shields.io/github/issues/detail/state/vuejs/vue-cli/2320.svg?style=flat-square" alt="The issue"></a>
3318
</p>
3419

3520
## Issue
@@ -48,15 +33,15 @@ yarn add vue-cli-proxy-plugin
4833
```js
4934
// vue.config.js
5035
module.exports = {
51-
pluginOptions: {
52-
proxy: {
53-
enabled: true,
54-
context: '',
55-
options: {
56-
// ...
57-
}
58-
}
59-
}
36+
pluginOptions: {
37+
proxy: {
38+
enabled: true,
39+
context: '',
40+
options: {
41+
// ...
42+
}
43+
}
44+
}
6045
}
6146
```
6247

@@ -71,16 +56,16 @@ See [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware#
7156
```js
7257
// vue.config.js
7358
module.exports = {
74-
pluginOptions: {
75-
proxy: {
76-
enabled: true,
77-
context: '/api',
78-
options: {
79-
target: 'http://www.example.org',
80-
changeOrigin: true
81-
}
82-
}
83-
}
59+
pluginOptions: {
60+
proxy: {
61+
enabled: true,
62+
context: '/api',
63+
options: {
64+
target: 'http://www.example.org',
65+
changeOrigin: true
66+
}
67+
}
68+
}
8469
}
8570
```
8671

@@ -89,18 +74,18 @@ module.exports = {
8974
```js
9075
// vue.config.js
9176
module.exports = {
92-
pluginOptions: {
93-
proxy: {
94-
enabled: true,
95-
context: [
96-
'/**',
97-
'!/dist/**'
98-
],
99-
options: {
100-
target: 'http://127.0.0.1:8000'
101-
}
102-
}
103-
}
77+
pluginOptions: {
78+
proxy: {
79+
enabled: true,
80+
context: [
81+
'/**',
82+
'!/dist/**'
83+
],
84+
options: {
85+
target: 'http://127.0.0.1:8000'
86+
}
87+
}
88+
}
10489
}
10590
```
10691

0 commit comments

Comments
 (0)