-
Notifications
You must be signed in to change notification settings - Fork 919
Closed
Description
Hi team 😸, thank you so much for providing the excellent project and support.
Currently we are working on the upgrading to Webpack4 in Nuxt, we met an issue in font preloading of SSR, the preload scripts of assets are empty (ssrContext.renderResourceHints()
).
After some investigations, I found the font asset 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
ConcatenatedModule
: https://github.com/webpack/webpack/blob/master/lib/optimize/ConcatenatedModule.js#L434
SSR plugin is using identifier which is modified by ConcatenatedModule
: https://github.com/vuejs/vue/blob/dev/src/server/webpack-plugin/client.js#L46
vue-loader is using request
: https://github.com/vuejs/vue-loader/blob/master/lib/loader.js#L250
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 😸
Metadata
Metadata
Assignees
Labels
No labels