script-ext-html-webpack-plugin
Advanced tools
Comparing version 1.8.7 to 1.8.8
@@ -10,3 +10,3 @@ 'use strict'; | ||
const getRawScriptName = tag => tag.attributes.src; | ||
const getRawScriptName = tag => (tag.attributes && tag.attributes.src) || ''; | ||
@@ -13,0 +13,0 @@ const getPublicPath = options => { |
@@ -31,2 +31,3 @@ 'use strict'; | ||
if (matches(scriptName, customOption.test)) { | ||
tag.attributes = tag.attributes || {}; | ||
tag.attributes[customOption.attribute] = customOption.value; | ||
@@ -33,0 +34,0 @@ updated = true; |
{ | ||
"name": "script-ext-html-webpack-plugin", | ||
"version": "1.8.7", | ||
"version": "1.8.8", | ||
"description": "Enhances html-webpack-plugin functionality with async and defer attributes for script elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Script Extension for HTML Webpack Plugin | ||
======================================== | ||
[![npm version](https://badge.fury.io/js/script-ext-html-webpack-plugin.svg)](http://badge.fury.io/js/script-ext-html-webpack-plugin) [![Dependency Status](https://david-dm.org/numical/script-ext-html-webpack-plugin.svg)](https://david-dm.org/numical/script-ext-html-webpack-plugin) [![Build status](https://travis-ci.org/numical/script-ext-html-webpack-plugin.svg)](https://travis-ci.org/numical/script-ext-html-webpack-plugin) [![Build status](https://ci.appveyor.com/api/projects/status/pmeaaxpjmps06fd2?svg=true)](https://ci.appveyor.com/project/numical/script-ext-html-webpack-plugin) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) | ||
[![npm version](https://badge.fury.io/js/script-ext-html-webpack-plugin.svg)](http://badge.fury.io/js/script-ext-html-webpack-plugin) [![Dependency Status](https://david-dm.org/numical/script-ext-html-webpack-plugin.svg)](https://david-dm.org/numical/script-ext-html-webpack-plugin) [![Build status](https://travis-ci.org/numical/script-ext-html-webpack-plugin.svg)](https://travis-ci.org/numical/script-ext-html-webpack-plugin) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) | ||
@@ -27,3 +27,3 @@ [![NPM](https://nodei.co/npm/script-ext-html-webpack-plugin.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/script-ext-html-webpack-plugin/) | ||
------------ | ||
You must be running webpack (1.x or 2.x) )on node 4+. | ||
You must be running webpack (1.x, 2.x, 3.x) )on node 4+. | ||
@@ -293,3 +293,3 @@ Install the plugin with npm: | ||
v1.8.x | ||
* added custom attributes | ||
* added custom attributes - now wok on inline scrits as well e.g. for CSP nonces, -thanks @niieani and @phallguy | ||
* compatible with [webpack-config](https://www.npmjs.com/package/webpack-config) - thank s @avaly | ||
@@ -296,0 +296,0 @@ * node v8+ and webback 3.x testing |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
427