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 2.1.4 to 2.1.5

2

lib/common.js

@@ -33,3 +33,3 @@ 'use strict';

if (output) {
let publicPath = output.publicPath;
const publicPath = output.publicPath;
if (publicPath) {

@@ -36,0 +36,0 @@ return publicPath.endsWith(separator) ? publicPath : publicPath + separator;

@@ -70,3 +70,3 @@ 'use strict';

const normaliseValue = (defaultProps, value) => {
let normalised = Object.assign({}, defaultProps);
const normalised = Object.assign({}, defaultProps);
if (value) {

@@ -111,3 +111,3 @@ normalised.test = convertToArray(value, () => {

const copyValue = (key, to, from) => {
if (from.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(from, key)) {
to[key] = from[key];

@@ -114,0 +114,0 @@ }

@@ -61,4 +61,4 @@ 'use strict';

const options = this.options;
const headTagName = pluginArgs.hasOwnProperty('headTags') ? 'headTags' : 'head';
const bodyTagName = pluginArgs.hasOwnProperty('bodyTags') ? 'bodyTags' : 'body';
const headTagName = Object.prototype.hasOwnProperty.call(pluginArgs, 'headTags') ? 'headTags' : 'head';
const bodyTagName = Object.prototype.hasOwnProperty.call(pluginArgs, 'bodyTags') ? 'bodyTags' : 'body';
try {

@@ -65,0 +65,0 @@ options.htmlWebpackOptions = getHtmlWebpackOptions(pluginArgs);

{
"name": "script-ext-html-webpack-plugin",
"version": "2.1.4",
"version": "2.1.5",
"description": "Enhances html-webpack-plugin functionality with async and defer attributes for script elements",

@@ -48,15 +48,15 @@ "main": "index.js",

"dependencies": {
"debug": "^4.1.1"
"debug": "^4.2.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
"cross-env": "^7.0.2",
"dynavers": "^0.3.1",
"handlebars": "^4.1.2",
"handlebars": "^4.7.6",
"handlebars-loader": "1.7.1",
"jasmine": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"jasmine": "^3.6.2",
"jasmine-spec-reporter": "^6.0.0",
"jasmine2-custom-message": "^0.9.3",
"rimraf": "^2.6.3",
"semistandard": "^13.0.1",
"uglifyjs-webpack-plugin": "^2.1.3",
"rimraf": "^3.0.2",
"semistandard": "^14.2.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack-config": "7.5.0"

@@ -63,0 +63,0 @@ },

@@ -7,3 +7,25 @@ Script Extension for HTML Webpack Plugin

Deprecation Warning
-------------------
**tl;dr**
This project is no longer maintained. It does not support Webpack 5.
**A bit more detail**
Any look at the [project activity](https://github.com/numical/script-ext-html-webpack-plugin/pulse) will show that I have not been able to maintain this project adequately.
The advent of version 5 of Webpack requires another bout of refactoring that I simply have no time for.
Consequently v2.15.0 will be the last version of this plugin.
My thanks to all users, and especially to all contributors, of this plugin over the years.
My apologies to all those whose webpack 5 migration has been made more complicated by this decision.
**But I still want to use the plugin...**
Feel free!
My last update works with versions of v4.44.2 of webpack and v4.5.0 of html-webpack-plugin.
Forkers feel free! That's what the licence is for.
In fact, if you fork with an intention to support on-going development, let me know!
I'll happily link to your repository here and offer some tips (main one: ditch backward compatibility - it's a pain).
I will formally archive this repository at the end of the 2020.
Summary
-------
Enhances [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin)

@@ -31,3 +53,3 @@ functionality with different deployment options for your scripts including:

```shell
$ npm install script-ext-html-webpack-plugin
$ npm install --save-dev script-ext-html-webpack-plugin
```

@@ -38,3 +60,3 @@ Not that you will need v3.0.6+ or v4.x of [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin)

```shell
$ npm install script-ext-html-webpack-plugin@1.8.8
$ npm install --save-dev script-ext-html-webpack-plugin@1.8.8
```

@@ -141,3 +163,3 @@

new ScriptExtHtmlWebpackPlugin({
sync: 'important'
sync: 'important',
defaultAttribute: 'defer'

@@ -191,3 +213,3 @@ })

value: 'anonymous'
}
},
preload: {

@@ -205,3 +227,3 @@ test: /\.js$/

new ScriptExtHtmlWebpackPlugin({
async: /\.js$/
async: /\.js$/,
preload: {

@@ -320,2 +342,8 @@ test: /\.js$/,

v2.1.5
* end of life version
* updated all dependencies
* fixes some tests to accomodate change in html-webpack-plugin output
* added end-of-life section to README.
v2.1.x

@@ -322,0 +350,0 @@ * support for changes in html-webpack-plugin 4.x since alpha and beta

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