mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
always enable resourceHints
This commit is contained in:
parent
b7c6a87239
commit
a8cbbf03ce
@ -169,7 +169,7 @@ export default {
|
||||
bundleRenderer: {
|
||||
shouldPrefetch: () => false
|
||||
},
|
||||
resourceHints: undefined,
|
||||
resourceHints: true,
|
||||
ssr: undefined,
|
||||
http2: {
|
||||
push: false,
|
||||
|
@ -144,11 +144,6 @@ Options.from = function (_options) {
|
||||
options.build.babel.cacheDirectory = options.dev
|
||||
}
|
||||
|
||||
// Resource hints
|
||||
if (options.render.resourceHints === undefined) {
|
||||
options.render.resourceHints = !options.dev
|
||||
}
|
||||
|
||||
// Normalize 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: {
|
||||
scopeHoisting: true,
|
||||
postcss: [require('postcss-cssnext')()]
|
||||
},
|
||||
render: {
|
||||
resourceHints: true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user