add note about filter(Boolean)

This commit is contained in:
Jason Miller
2018-03-29 10:21:56 -04:00
parent e347cbe413
commit 9977e5b8c6

View File

@@ -211,7 +211,7 @@ module.exports = function(_, env) {
navigateFallback: '/', navigateFallback: '/',
navigateFallbackBlacklist: [/\.[a-z0-9]+$/i] 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. // Turn off various NodeJS environment polyfills Webpack adds to bundles.
// They're supposed to be added only when used, but the heuristic is loose // They're supposed to be added only when used, but the heuristic is loose