Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

add note about filter(Boolean)

Jason Miller9977e5b8c603
diff --git a/webpack.config.js b/webpack.config.js
index 53db1dd1..41e39a23 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -211,7 +211,7 @@ module.exports = function(_, env) {
navigateFallback: '/',
navigateFallbackBlacklist: [/\.[a-z0-9]+$/i]
})
- ].filter(Boolean),
+ ].filter(Boolean), // Filter out any falsey plugin array entries.
// Turn off various NodeJS environment polyfills Webpack adds to bundles.
// They're supposed to be added only when used, but the heuristic is loose