Skip to content

Commit

Permalink
Added next13 bundle analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
liamohkay committed Jan 3, 2025
1 parent 6934ab6 commit 666f5ef
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 5 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const dotenv = require('dotenv');
const withTM = require('next-transpile-modules')(['react-syntax-highlighter']);
const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true' });

// Load environment variables from a specific file in the parent directory
dotenv.config({ path: '../.env' });
Expand Down
174 changes: 171 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"install:all": "npm i && cd functions && npm i && cd ..",
"dev": "next dev",
"dev:all": "concurrently --kill-others-on-fail \"npm run emulators\" \"npm run dev\"",
"dev": "ANALYZE=true next dev",
"dev:all": "ANALYZE=true concurrently --kill-others-on-fail \"npm run emulators\" \"npm run dev\"",
"start": "next start",
"export": "next export",
"build": "npm i && next build",
Expand Down Expand Up @@ -48,6 +48,7 @@
"unified": "^11.0.2"
},
"devDependencies": {
"@next/bundle-analyzer": "^15.1.3",
"@svgr/webpack": "^8.0.1",
"concurrently": "^9.1.0",
"eslint": "8.40.0",
Expand Down

0 comments on commit 666f5ef

Please sign in to comment.