This repository was archived by the owner on Jan 21, 2021. It is now read-only.
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">