This repository has been archived by the owner on Jan 21, 2021. It is now read-only.
Releases: GoogleChromeLabs/preload-webpack-plugin
Releases · GoogleChromeLabs/preload-webpack-plugin
1.2.2
This release includes a fix for an issue where include
did not work properly when sourcemaps are generated (i.e. chunk.files is an array).
1.2.1
1.1.0
We now support preloading Webpack named chunks thanks to @bekos 🏆 🎉
If you work with named chunks, you can explicitly specify which ones to include by passing an include
array:
plugins: [
new HtmlWebpackPlugin(),
new PreloadWebpackPlugin({
rel: 'preload',
as: 'script',
include: ['home']
})
]
will for example inject just this:
<link rel="preload" href="home.31132ae6680e598f8879.js" as="script">