assets-webpack-plugin
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -13,2 +13,8 @@ # Change Log | ||
## 3.7.1 - 2018-06-13 | ||
### Changed | ||
- Fixes a parsing error with the asset path introduced by the fix for [#88](https://github.com/kossnocorp/assets-webpack-plugin/issues/88) | ||
## 3.7.0 - 2018-06-13 | ||
@@ -15,0 +21,0 @@ |
@@ -57,3 +57,3 @@ var fs = require('fs') | ||
var chunks = Object.keys(assetsByChunkName) | ||
chunks.push('') // push "unamed" chunk | ||
chunks.push('')// push "unamed" chunk | ||
var output = chunks.reduce(function (chunkMap, chunkName) { | ||
@@ -67,3 +67,3 @@ var assets = chunkName ? assetsByChunkName[chunkName] : stats.assets | ||
var asset = obj.name || obj | ||
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || !chunkName && seenAssets[asset]) { | ||
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || (!chunkName && seenAssets[asset])) { | ||
return typeMap | ||
@@ -73,3 +73,3 @@ } | ||
var typeName = getAssetKind(options, asset) | ||
var combinedPath = assetPath ? `${assetPath}/${asset}`.replace(/\/\//, '/') : asset | ||
var combinedPath = assetPath && assetPath.slice(-1) !== '/' ? `${assetPath}/${asset}` : assetPath + asset | ||
var type = typeof typeMap[typeName] | ||
@@ -76,0 +76,0 @@ if (type === 'undefined') { |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "Emits a json file with assets paths", | ||
@@ -5,0 +5,0 @@ "main": "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
51216