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
{{ message }}
This repository was archived by the owner on Jun 14, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ $ npm run dev
34
34
- HTML minified with [html-minifier](https://github.com/kangax/html-minifier).
35
35
- CSS across all components extracted into a single file and minified with [cssnano](https://github.com/ben-eb/cssnano).
36
36
- All static assets compiled with version hashes for efficient long-term caching, and a production `index.html` is auto-generated with proper URLs to these generated assets.
37
+
- Use `npm run build --report`to build with bundle size analytics.
37
38
38
39
-`npm run unit`: Unit tests run in PhantomJS with [Karma](http://karma-runner.github.io/0.13/index.html) + [Mocha](http://mochajs.org/) + [karma-webpack](https://github.com/webpack/karma-webpack).
Copy file name to clipboardExpand all lines: docs/proxy.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,3 +24,18 @@ module.exports = {
24
24
```
25
25
26
26
The above example will proxy the request `/api/posts/1` to `http://jsonplaceholder.typicode.com/posts/1`.
27
+
28
+
## URL Matching
29
+
30
+
In addition to static urls you can also use glob patterns to match URLs, e.g. `/api/**`. See [Context Matching](https://github.com/chimurai/http-proxy-middleware#context-matching) for more details. In addition, you can provide a `filter` option that can be a custom function to determine whether a request should be proxied:
Copy file name to clipboardExpand all lines: meta.js
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,10 @@ module.exports = {
40
40
}
41
41
]
42
42
},
43
+
"router": {
44
+
"type": "confirm",
45
+
"message": "Install vue-router?"
46
+
},
43
47
"unit": {
44
48
"type": "confirm",
45
49
"message": "Setup unit tests with Karma + Mocha?"
@@ -52,7 +56,9 @@ module.exports = {
52
56
"filters": {
53
57
"config/test.env.js": "unit || e2e",
54
58
"test/unit/**/*": "unit",
55
-
"test/e2e/**/*": "e2e"
59
+
"build/webpack.test.conf.js": "unit",
60
+
"test/e2e/**/*": "e2e",
61
+
"src/router/**/*": "router"
56
62
},
57
63
"completeMessage": "To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev\n\nDocumentation can be found at https://vuejs-templates.github.io/webpack"
0 commit comments