Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#159] Introduce bundle analyzer #160

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ next-env.d.ts
.idea

# storybook
/storybook-static
/storybook-static

# bundle analyzer
/analyze
6 changes: 5 additions & 1 deletion ui/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import bundleAnalzer from '@next/bundle-analyzer';

const withBundleAnalzyer = bundleAnalzer({ enabled: process.env.ANALYZE === 'true' });

/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
export default withBundleAnalzyer(nextConfig);
141 changes: 141 additions & 0 deletions ui/package-lock.json

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

2 changes: 2 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:analyze": "ANALYZE=true next build",
"start": "next start",
"test": "jest",
"lint": "next lint",
Expand All @@ -31,6 +32,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.1.0",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-interactions": "^7.6.12",
"@storybook/blocks": "^7.6.12",
Expand Down
Loading