Skip to content

Commit 4b49a6c

Browse files
committed
Fixing configuration performance example
The example did not work since the `assetFilter` function was passing in `assetFilename` but was using `assetName` within the function body instead.
1 parent 5ef202d commit 4b49a6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/configuration/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ contributors:
66
- skipjack
77
- grgur
88
- bondz
9+
- sricc
910
---
1011

1112
Webpack is fed via a configuration object. It is passed in one of two ways depending on how you are using webpack: through the terminal or via Node.js. All the available configuration options are specified below.
@@ -294,7 +295,7 @@ T> Notice that throughout the configuration we use Node's built-in [path module]
294295
[maxEntrypointSize](/configuration/performance#performance-maxentrypointsize): 400000, // int (in bytes)
295296
[assetFilter](/configuration/performance#performance-assetfilter): function(assetFilename) {
296297
// Function predicate that provides asset filenames
297-
return assetName.endsWith('.css') || assetName.endsWith('.js');
298+
return assetFilename.endsWith('.css') || assetFilename.endsWith('.js');
298299
}
299300
},
300301

0 commit comments

Comments
 (0)