remove condition due to 'this.options.dev' is always false

Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
Clark Du 2017-09-08 12:10:57 +08:00
parent 1e0c807341
commit eae828ccc6
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export default class Renderer extends Tapable {
path: this.publicPath, path: this.publicPath,
handler: serveStatic(distDir, { handler: serveStatic(distDir, {
index: false, // Don't serve index.html template index: false, // Don't serve index.html template
maxAge: (this.options.dev ? 0 : '1y') // 1 year in production maxAge: '1y' // 1 year in production
}) })
}) })
} }