mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 15:10:58 +00:00
fix(modern): modulepreload not work in generate (#7498)
This commit is contained in:
parent
db65c2eb6b
commit
245d32d0dc
@ -2,7 +2,7 @@ import path from 'path'
|
||||
import fs from 'fs-extra'
|
||||
import consola from 'consola'
|
||||
import template from 'lodash/template'
|
||||
import { isModernRequest, waitFor } from '@nuxt/utils'
|
||||
import { TARGETS, isModernRequest, waitFor } from '@nuxt/utils'
|
||||
|
||||
import SPARenderer from './renderers/spa'
|
||||
import SSRRenderer from './renderers/ssr'
|
||||
@ -195,7 +195,7 @@ export default class VueRenderer {
|
||||
return
|
||||
}
|
||||
|
||||
if (!resources.modernManifest) {
|
||||
if (!resources.modernManifest && options.target !== TARGETS.static) {
|
||||
options.modern = false
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user