From e8623d0af84cbbd13f0458440672c7634a165eaf Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 4 Sep 2021 16:19:33 -0500 Subject: [PATCH] Webpack: UnusedFilesWebpackPlugin: ignore locale whitelist files, about.example --- webpack/shared.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack/shared.js b/webpack/shared.js index 23f781d6a..dae74cd86 100644 --- a/webpack/shared.js +++ b/webpack/shared.js @@ -82,7 +82,12 @@ module.exports = { new UnusedFilesWebpackPlugin({ patterns: ['app/**/*.*'], globOptions: { - ignore: ['node_modules/**/*', '**/__*__/**/*'], + ignore: [ + 'node_modules/**/*', + '**/__*__/**/*', + 'app/instance/about.example', + 'app/soapbox/locales/whitelist_*.json', + ], }, }), // https://github.com/jantimon/html-webpack-plugin#options