mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 16:09:52 +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: {
|
bundleRenderer: {
|
||||||
shouldPrefetch: () => false
|
shouldPrefetch: () => false
|
||||||
},
|
},
|
||||||
resourceHints: true,
|
resourceHints: undefined,
|
||||||
ssr: undefined,
|
ssr: undefined,
|
||||||
http2: {
|
http2: {
|
||||||
push: false,
|
push: false,
|
||||||
|
@ -141,6 +141,11 @@ Options.from = function (_options) {
|
|||||||
options.debug = options.dev
|
options.debug = options.dev
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resource hints
|
||||||
|
if (options.render.resourceHints === undefined) {
|
||||||
|
options.render.resourceHints = !options.dev
|
||||||
|
}
|
||||||
|
|
||||||
// Normalize ignore
|
// Normalize ignore
|
||||||
options.ignore = options.ignore ? [].concat(options.ignore) : []
|
options.ignore = options.ignore ? [].concat(options.ignore) : []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user