diff --git a/server/build/webpack.js b/server/build/webpack.js index fbd51f73..aec0d7e0 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -45,7 +45,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa new webpack.optimize.CommonsChunkPlugin({ name: 'commons', filename: 'commons.js', - minChunks: pages.length + minChunks: Math.max(2, pages.length) }) ] diff --git a/server/index.js b/server/index.js index c3e58455..3a97ebba 100644 --- a/server/index.js +++ b/server/index.js @@ -54,7 +54,6 @@ export default class Server { const p = join(__dirname, '..', 'client', ...(params.path || [])) await this.serveStatic(req, res, p) }) - this.router.get('/static/:path+', async (req, res, params) => { const p = join(this.dir, 'static', ...(params.path || [])) await this.serveStatic(req, res, p)