Upgrading to Quasar 2 breaks PreloadWebpackPlugin?
-
Prior to Quasar 2 we have been using
@vue/preload-webpack-plugin
to have our resources preloaded, but it would seem that thehtmlWebpackPlugin
is no longer part of Quasar.This plugin had resolved the issue of partially loaded chunks and dependencies when uses an SPA in a situation with poor internet connectivity. We did not find that
preloadChunks
was sufficient to deal with this in the past.Can anyone suggest an alternative approach to having the
preload
attribute added against loaded resources, or at the very least ensure all resources are loaded up front?Environment:
- NodeJS: 14.15.1
- @vue/preload-webpack-plugin: 1.1.2
- @quasar/app: 2.1.14
-
@ajmas Read this (hopefully it will solve your issue): https://webpack.js.org/guides/code-splitting/#prefetchingpreloading-modules
-