Description
Version
14.2.1
Reproduction link
https://github.com/nuxt/nuxt.js/blob/feat/webpack4/test/with-config.test.js#L46-L53
Steps to reproduce
Try to get preload scripts of assets in SSR resources hints by calling ssrContext.renderResourceHints()
What is expected?
Preload scripts of assets can generate successfully
What is actually happening?
Preload scripts of assets are empty
Currently we are working on the upgrading to Webpack4 in Nuxt, we met this issue in SSR font-preloading.
After some investigations, I found the issue was caused by two reasons.
-
Webpack module assets is null, I have opened a pr fix: module assets is in buildInfo webpack/webpack#6640 (merged)
-
Webpack ConcatenatedModule has changed module identifier to
request additional hash
, butvue-loader
is still usingrequest
.
I'm not very sure the fix should be done in vue-ssr or vue-loader, so just opened issue here, we can have a discussion and figure out the solution 😸