Skip to content

Commit 5ebce6e

Browse files
committed
Add bundle analyzer, update formation package version
1 parent 3f735e0 commit 5ebce6e

File tree

3 files changed

+309
-115
lines changed

3 files changed

+309
-115
lines changed

Diff for: next.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ const nextConfig = {
77
}
88
}
99

10-
module.exports = nextConfig
10+
const withBundleAnalyzer = require('@next/bundle-analyzer')({
11+
enabled: process.env.ANALYZE === 'true',
12+
})
13+
module.exports = withBundleAnalyzer(nextConfig)

Diff for: package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
"scripts": {
55
"dev": "next dev",
66
"build": "next build",
7+
"analyze": "cross-env ANALYZE=true yarn build",
78
"start": "next start",
89
"lint": "next lint",
910
"add-formation": "yarn add @avsync.live/formation",
1011
"reformation": "yarn remove @avsync.live/formation && rm -rf ./node_modules/@avsync.live/formation && yarn add-formation"
1112
},
1213
"dependencies": {
13-
"@avsync.live/formation": "^0.9.146",
14+
"@avsync.live/formation": "^0.9.163",
1415
"@fortawesome/fontawesome-svg-core": "^6.1.2",
16+
"@next/bundle-analyzer": "^13.4.12",
1517
"@types/styled-components": "^5.1.26",
18+
"cross-env": "^7.0.3",
1619
"next": "12.2.5",
1720
"react": "18.2.0",
1821
"react-dom": "18.2.0",

0 commit comments

Comments
 (0)