preload-webpack-plugin
preload-webpack-plugin copied to clipboard
A Webpack plugin for wiring up `<link rel='preload'>` (and prefetch) - supports async chunks
 Would be nice to make it compatible with rspack
I tried your config and it works, resulting html has prefetch and preload links. I myself have config which preloads fonts and prefetches js and css and it works. Perhaps...
@vue/preload-webpack-plugin@^2.0.0 [email protected] react-loadable@^5.5.0 import( /* webpackPreload: true */ /* webpackChunkName: "navigation" */ './xxx' )
Tried to replace old preload-webpack-plugin in my webpack 5 config with this fork and I'm getting this error: compilation PreloadPlugin[webpack-cli] TypeError: Cannot read property 'tap' of undefined at C:\\node_modules\@vue\preload-webpack-plugin\src\index.js:115:65 at...
Fix a spelling mistake.
```javascript /* config.plugin('preload') */ new PreloadPlugin( { rel: 'preload', include: 'initial', fileBlacklist: [ /\.map$/, /hot-update\.js$/ ] } ), /* config.plugin('prefetch') */ new PreloadPlugin( { rel: 'prefetch', include: 'asyncChunks' } )...
Ran into an issue where if the publicPath does not have a trailing slash, the output result gets concatenated wrong (adding a trailing slash broke other plugins). This PR addresses...
[Preloading responsive images](https://web.dev/preload-responsive-images/)
**Issue Type**: Feature Request **Description**: Given the support for prefetch, it seems like it would be worthwhile to add support for media tags, and putting prefetch links down at the...
We use webpack to build our application for electron. Our html, css and woff2 are delivered over `file://` protocol. Setting crossorigin attribute on fonts results in loading the font twice....