assets-webpack-plugin
Advanced tools
Comparing version 6.0.0-alpha.4 to 6.0.0-alpha.5
@@ -101,2 +101,5 @@ 'use strict'; | ||
var asset = obj.name || obj; | ||
console.log(asset); | ||
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || !chunkName && seenAssets[asset]) { | ||
@@ -103,0 +106,0 @@ return typeMap; |
@@ -6,2 +6,4 @@ 'use strict'; | ||
module.exports = function isHMRUpdate(options, asset) { | ||
if (asset.includes('.hot-update.')) return true; | ||
var hotUpdateChunkFilename = options.output.hotUpdateChunkFilename; | ||
@@ -8,0 +10,0 @@ var hotUpdateTemplate = pathTemplate(hotUpdateChunkFilename); |
@@ -101,2 +101,5 @@ const fs = require('fs') | ||
const asset = obj.name || obj | ||
console.log(asset) | ||
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || (!chunkName && seenAssets[asset])) { | ||
@@ -103,0 +106,0 @@ return typeMap |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "6.0.0-alpha.4", | ||
"version": "6.0.0-alpha.5", | ||
"description": "Emits a json file with assets paths", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
40201
601