Skip to content

Commit e3c15cf

Browse files
committed
🎉 Initial commit
0 parents  commit e3c15cf

File tree

5 files changed

+725
-0
lines changed

5 files changed

+725
-0
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.DS_Store
2+
node_modules/
3+
/dist/
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
/tests/unit/coverage
8+
/tests/e2e/reports
9+
selenium-debug.log
10+
/src/config/
11+
12+
# Editor directories and files
13+
.idea
14+
*.suo
15+
*.ntvs*
16+
*.njsproj
17+
*.sln

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vue-cli-plugin-proxy

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var proxy = require('http-proxy-middleware');
2+
3+
module.exports = api => {
4+
api.configureDevServer((app) => {
5+
app.use(proxy(['/**', '!/dist/**'], { target: 'http://127.0.0.1:8000' }));
6+
});
7+
};

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@cnamts/vue-cli-plugin-proxy",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"author": "Dylan Broussard <deraw@outlook.fr>",
7+
"dependencies": {
8+
"http-proxy-middleware": "^0.18.0"
9+
}
10+
}

0 commit comments

Comments
 (0)