Socket
Socket
Sign inDemoInstall

script-ext-html-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

script-ext-html-webpack-plugin - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

10

index.js

@@ -20,2 +20,3 @@ 'use strict';

};
const PUBLIC_PATH_PREFIX = /^.*\//;

@@ -78,3 +79,10 @@ const shouldUpdateElements = (options) => {

const getScriptName = (tag) => tag.attributes.src;
const getScriptName = (tag) => {
let scriptName = tag.attributes.src;
// remove publicPath prefix
if (scriptName.indexOf('/') > -1) {
scriptName = scriptName.replace(PUBLIC_PATH_PREFIX, '');
}
return scriptName;
};

@@ -81,0 +89,0 @@ const updateSrcElement = (options, tag) => {

2

package.json
{
"name": "script-ext-html-webpack-plugin",
"version": "1.4.0",
"version": "1.4.1",
"description": "Enhances html-webpack-plugin functionality with async and defer attributes for script elements",

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

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