diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-20 12:40:48 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-20 16:45:15 +0100 |
| commit | 5a572163c5a5174c1620c578f550dd7ddc841df4 (patch) | |
| tree | 48f0b3c6088d6e5258c8454fe47d5db8adadbab7 /next.config.js | |
| parent | 67ac79f8ba2ea900ec0ac67e56387889ee887a48 (diff) | |
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
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 1 |
1 files changed, 1 insertions, 0 deletions
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) => { |
