From 24318d6bdbae8347611a290366a8e8bdfedcffb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=89=8D=E8=BF=9B?= Date: Sun, 3 Nov 2019 21:47:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=9D=99=E6=80=81=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=A0=88=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/devServer.js | 2 +- example/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/devServer.js b/example/devServer.js index dd8dd7c..a6b781f 100644 --- a/example/devServer.js +++ b/example/devServer.js @@ -15,7 +15,7 @@ app.use(KoaCompress({ threshold: 2048, flush: require('zlib').Z_SYNC_FLUSH })); -app.use(KoaStatic(path.join(__dirname, '../')), { +app.use(KoaStatic(path.join(__dirname, '../dist')), { maxAge: 365 * 24 * 60 * 60 }); diff --git a/example/index.html b/example/index.html index 746f59a..67f8aa5 100644 --- a/example/index.html +++ b/example/index.html @@ -51,7 +51,7 @@ - +