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

Releases: GoogleChromeLabs/preload-webpack-plugin

1.2.2

25 Mar 05:33
Compare
Choose a tag to compare

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

06 Mar 02:30
Compare
Choose a tag to compare

This release addresses an issue preventing the plugin being used in Node 4.0 environments. It also introduces a filesBlacklist to avoid preloading certain types of files.

Docs for the new addition can be found here 📓

1.1.0

02 Feb 21:48
Compare
Choose a tag to compare

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