misc: disable resourceHints for dev if not specified

This commit is contained in:
Pooya Parsa 2018-03-20 14:06:06 +03:30
parent 45b1a55ea9
commit c3ae6cd373
2 changed files with 6 additions and 1 deletions

View File

@ -150,7 +150,7 @@ export default {
bundleRenderer: {
shouldPrefetch: () => false
},
resourceHints: true,
resourceHints: undefined,
ssr: undefined,
http2: {
push: false,

View File

@ -141,6 +141,11 @@ Options.from = function (_options) {
options.debug = options.dev
}
// Resource hints
if (options.render.resourceHints === undefined) {
options.render.resourceHints = !options.dev
}
// Normalize ignore
options.ignore = options.ignore ? [].concat(options.ignore) : []