assets-webpack-plugin
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -8,5 +8,8 @@ # Change Log | ||
## 6.1.2 - 2020-12-08 | ||
* Closes [#319](https://github.com/ztoben/assets-webpack-plugin/issues/319) | ||
## 6.1.1 - 2020-12-03 | ||
* Adds the `includeDynamicImportedAssets` option | ||
* Closes [#313](https://github.com/ztoben/assets-webpack-plugin/issues/312) | ||
* Closes [#313](https://github.com/ztoben/assets-webpack-plugin/issues/313) | ||
@@ -13,0 +16,0 @@ ## 6.1.0 - 2020-12-03 |
@@ -126,3 +126,3 @@ 'use strict'; | ||
var integrity = compilationAsset && compilationAsset.integrity; | ||
var loadingBehaviour = obj.loadingBehaviour; | ||
var loadingBehavior = obj.loadingBehavior; | ||
@@ -140,7 +140,7 @@ if (type === 'undefined') { | ||
if (self.options.includeDynamicImportedAssets && loadingBehaviour) { | ||
var typeNameWithLoadingBehaviour = typeName + ':' + loadingBehaviour; | ||
if (self.options.includeDynamicImportedAssets && loadingBehavior) { | ||
var typeNameWithLoadingBehavior = typeName + ':' + loadingBehavior; | ||
typeMap[typeNameWithLoadingBehaviour] = typeMap[typeNameWithLoadingBehaviour] || []; | ||
typeMap[typeNameWithLoadingBehaviour].push(combinedPath); | ||
typeMap[typeNameWithLoadingBehavior] = typeMap[typeNameWithLoadingBehavior] || []; | ||
typeMap[typeNameWithLoadingBehavior].push(combinedPath); | ||
} else { | ||
@@ -147,0 +147,0 @@ typeMap[typeName].push(combinedPath); |
10
index.js
@@ -124,3 +124,3 @@ const fs = require('fs') | ||
const integrity = compilationAsset && compilationAsset.integrity | ||
const loadingBehaviour = obj.loadingBehaviour | ||
const loadingBehavior = obj.loadingBehavior | ||
@@ -138,7 +138,7 @@ if (type === 'undefined') { | ||
if (self.options.includeDynamicImportedAssets && loadingBehaviour) { | ||
const typeNameWithLoadingBehaviour = typeName + ':' + loadingBehaviour | ||
if (self.options.includeDynamicImportedAssets && loadingBehavior) { | ||
const typeNameWithLoadingBehavior = typeName + ':' + loadingBehavior | ||
typeMap[typeNameWithLoadingBehaviour] = typeMap[typeNameWithLoadingBehaviour] || [] | ||
typeMap[typeNameWithLoadingBehaviour].push(combinedPath) | ||
typeMap[typeNameWithLoadingBehavior] = typeMap[typeNameWithLoadingBehavior] || [] | ||
typeMap[typeNameWithLoadingBehavior].push(combinedPath) | ||
} else { | ||
@@ -145,0 +145,0 @@ typeMap[typeName].push(combinedPath) |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Emits a json file with assets paths", | ||
@@ -48,3 +48,3 @@ "main": "dist/index.js", | ||
"style-loader": "2.0.0", | ||
"webpack": "5.9.0" | ||
"webpack": "5.10.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "dependencies": { |
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
45968