diff --git a/lib/common/nuxt.config.js b/lib/common/nuxt.config.js index a596bfcc51..e8c6b196d0 100644 --- a/lib/common/nuxt.config.js +++ b/lib/common/nuxt.config.js @@ -150,7 +150,7 @@ export default { bundleRenderer: { shouldPrefetch: () => false }, - resourceHints: true, + resourceHints: undefined, ssr: undefined, http2: { push: false, diff --git a/lib/common/options.mjs b/lib/common/options.mjs index 1b4f3fdc94..2713612164 100644 --- a/lib/common/options.mjs +++ b/lib/common/options.mjs @@ -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) : []