Skip to content

Commit 91e9409

Browse files
committed
feat: support POST method
1 parent e348e29 commit 91e9409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ module.exports = function(args, callback) {
8181
compiler.plugin("invalid", invalidPlugin);
8282

8383
app.use(require('./middleware')(compiler, args.publicPath));
84-
app.use(require('koa-static')(join(__dirname, 'public')));
85-
app.use(require('koa-static')(args.cwd));
84+
app.use(require('koa-static-with-post')(join(__dirname, 'public')));
85+
app.use(require('koa-static-with-post')(args.cwd));
8686
app.use(require('koa-serve-index')(args.cwd, {
8787
hidden: true,
8888
view: 'details'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"istanbul-instrumenter-loader": "~0.1.3",
2828
"koa": "~0.21.0",
2929
"koa-serve-index": "~1.0.4",
30-
"koa-static": "~1.4.9",
30+
"koa-static-with-post": "~1.5.2",
3131
"koa-webpack-dev-middleware": "~1.0.0",
3232
"mocha-phantomjs": "~4.0.1",
3333
"mocha-phantomjs-istanbul": "0.0.2",

0 commit comments

Comments
 (0)