diff --git a/changelog.md b/changelog.md index 8690f20..dec4dc1 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning]. [Semantic Versioning]: http://semver.org/ +## 6.0.4 - 2020-11-13 +* Adds the `includeAuxiliaryAssets` option +* Closes [#302](https://github.com/ztoben/assets-webpack-plugin/issues/302) + ## 6.0.2 - 2020-10-16 * Closes [#279](https://github.com/ztoben/assets-webpack-plugin/issues/279) diff --git a/index.js b/index.js index 26bda13..3546119 100644 --- a/index.js +++ b/index.js @@ -92,9 +92,9 @@ AssetsWebpackPlugin.prototype = { } else { assets = chunkName ? stats.assetsByChunkName[chunkName] : stats.assets } - - if(self.options.includeAuxiliaryAssets && stats.entrypoints[chunkName].auxiliaryAssets){ - assets = [...assets, ...stats.entrypoints[chunkName].auxiliaryAssets]; + + if (self.options.includeAuxiliaryAssets && stats.entrypoints[chunkName].auxiliaryAssets) { + assets = [...assets, ...stats.entrypoints[chunkName].auxiliaryAssets] } if (!Array.isArray(assets)) { diff --git a/package.json b/package.json index 836b0cb..8c216e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assets-webpack-plugin", - "version": "6.0.3", + "version": "6.0.4", "description": "Emits a json file with assets paths", "main": "dist/index.js", "engines": {