From 5a572163c5a5174c1620c578f550dd7ddc841df4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 20 Dec 2023 12:40:48 +0100 Subject: build: improve bundle size * add `sideEffects` in package.json to activate tree shaking for barrel files * use dynamic imports on social links and icons * resize social media images * resize large project image (demo apcom) * resize website logo --- next.config.js | 1 + 1 file changed, 1 insertion(+) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index 02aa847..ff94748 100644 --- a/next.config.js +++ b/next.config.js @@ -174,6 +174,7 @@ const nextConfig = { const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === 'true', + openAnalyzer: false, }); const overrideHTMLTags = () => (tree) => { -- cgit v1.2.3