mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
misc: disable resourceHints for dev if not specified
This commit is contained in:
parent
45b1a55ea9
commit
c3ae6cd373
@ -150,7 +150,7 @@ export default {
|
||||
bundleRenderer: {
|
||||
shouldPrefetch: () => false
|
||||
},
|
||||
resourceHints: true,
|
||||
resourceHints: undefined,
|
||||
ssr: undefined,
|
||||
http2: {
|
||||
push: false,
|
||||
|
@ -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) : []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user