mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
always enable resourceHints
This commit is contained in:
parent
b7c6a87239
commit
a8cbbf03ce
@ -169,7 +169,7 @@ export default {
|
|||||||
bundleRenderer: {
|
bundleRenderer: {
|
||||||
shouldPrefetch: () => false
|
shouldPrefetch: () => false
|
||||||
},
|
},
|
||||||
resourceHints: undefined,
|
resourceHints: true,
|
||||||
ssr: undefined,
|
ssr: undefined,
|
||||||
http2: {
|
http2: {
|
||||||
push: false,
|
push: false,
|
||||||
|
@ -144,11 +144,6 @@ Options.from = function (_options) {
|
|||||||
options.build.babel.cacheDirectory = options.dev
|
options.build.babel.cacheDirectory = 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) : []
|
||||||
|
|
||||||
|
3
test/fixtures/basic/nuxt.config.js
vendored
3
test/fixtures/basic/nuxt.config.js
vendored
@ -36,8 +36,5 @@ export default {
|
|||||||
build: {
|
build: {
|
||||||
scopeHoisting: true,
|
scopeHoisting: true,
|
||||||
postcss: [require('postcss-cssnext')()]
|
postcss: [require('postcss-cssnext')()]
|
||||||
},
|
|
||||||
render: {
|
|
||||||
resourceHints: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user