diff --git a/lib/local-web-server.js b/lib/local-web-server.js index 2aa5f49..17d08ac 100644 --- a/lib/local-web-server.js +++ b/lib/local-web-server.js @@ -166,13 +166,13 @@ function localWebServer (options) { /* for any URL not matched by static (e.g. `/search`), serve the SPA */ if (options.spa) { - const historyApiFallback = require('koa-connect-history-api-fallback'); + const historyApiFallback = require('koa-connect-history-api-fallback') debug('SPA', options.spa) app.use(historyApiFallback({ index: options.spa, verbose: options.verbose, rewrites: options.rewrite - })); + })) } /* serve static files */