Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

1.1.0

Choose a tag to compare

@addyosmani addyosmani released this 02 Feb 21:48
· 140 commits to master since this release

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">