Skip to content

Commit

Permalink
prepare for v6.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ztoben committed Nov 13, 2020
1 parent e37e54b commit 01d5a80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down

0 comments on commit 01d5a80

Please sign in to comment.