Socket
Socket
Sign inDemoInstall

preload-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preload-webpack-plugin - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

6

index.js

@@ -76,2 +76,8 @@ /**

}
} else if (options.include === 'initial') {
try {
extractedChunks = compilation.chunks.filter(chunk => chunk.isInitial());
} catch (e) {
extractedChunks = compilation.chunks;
}
} else if (options.include === 'all') {

@@ -78,0 +84,0 @@ // Async chunks, vendor chunks, normal chunks.

2

package.json
{
"name": "preload-webpack-plugin",
"version": "2.1.2",
"version": "2.2.0",
"description": "Enhances html-webpack-plugin with link rel=preload wiring capabilities for scripts",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -135,4 +135,3 @@ preload-webpack-plugin

You can also configure the plugin to preload all chunks (vendor, async, normal chunks) using
`include`:
You can also configure the plugin to preload all chunks (vendor, async, normal chunks) using `include: 'all'`, or only preload initial chunks with `include: 'initial'`:

@@ -144,3 +143,3 @@ ```js

rel: 'preload',
include: 'all'
include: 'all' // or 'initial'
})

@@ -147,0 +146,0 @@ ]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc