Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 7da4d58

Browse files
committed
chore: setup bundle-analyzer
1 parent 0881cb1 commit 7da4d58

File tree

5 files changed

+66
-2
lines changed

5 files changed

+66
-2
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

website/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

website/gatsby-node.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
const BundleAnalyzerPlugin = require('@bundle-analyzer/webpack-plugin')
2+
13
module.exports.createPages = ({ actions }) => {
24
actions.createRedirect({
35
fromPath: `/docs/`,
46
toPath: `/docs/getting-started/`,
57
redirectInBrowser: true,
68
})
79
}
10+
11+
exports.onCreateWebpackConfig = ({ actions }) => {
12+
actions.setWebpackConfig({
13+
plugins: [
14+
new BundleAnalyzerPlugin({
15+
token: '0f76d516797d28b3eac9999c701186d94360c766',
16+
}),
17+
],
18+
})
19+
}

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"serve": "gatsby serve"
88
},
99
"dependencies": {
10+
"@bundle-analyzer/webpack-plugin": "^0.3.1",
1011
"@emotion/core": "^10.0.16",
1112
"@emotion/styled": "^10.0.15",
1213
"@smooth-ui/core-sc": "^10.1.0",

website/yarn.lock

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,24 @@
763763
lodash "^4.17.13"
764764
to-fast-properties "^2.0.0"
765765

766+
"@bundle-analyzer/core@^0.3.1":
767+
version "0.3.1"
768+
resolved "https://registry.yarnpkg.com/@bundle-analyzer/core/-/core-0.3.1.tgz#31635b10505f1361b41826e9ffda28d4f156d757"
769+
integrity sha512-wg4ofAphjmMBz0MfsmUXWn/NwRAOsxY5SDy3XsBlqWP8Z/+i6jLmFmAVYpjD7tKcmHnpYmLTa9Ma011rod9MAw==
770+
dependencies:
771+
axios "^0.19.0"
772+
brotli-size "^4.0.0"
773+
cosmiconfig "^5.2.1"
774+
gzip-size "^5.1.1"
775+
omit-deep "^0.3.0"
776+
777+
"@bundle-analyzer/webpack-plugin@^0.3.1":
778+
version "0.3.1"
779+
resolved "https://registry.yarnpkg.com/@bundle-analyzer/webpack-plugin/-/webpack-plugin-0.3.1.tgz#1877cf0a8494ca66619bd585ea5606fe3d5fce0a"
780+
integrity sha512-tL6q+YsO4tUWNdcaICQ/qteFRmxNVwIN22q0WyZLD29DEvchWlggixsA3cDi/9g8ThjQYusrmuYMmQO1rjVHNQ==
781+
dependencies:
782+
"@bundle-analyzer/core" "^0.3.1"
783+
766784
"@emotion/cache@^10.0.15":
767785
version "10.0.15"
768786
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.15.tgz#b81767b48015aae2689c60373992145c67b8de02"
@@ -2539,6 +2557,13 @@ brorand@^1.0.1:
25392557
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
25402558
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
25412559

2560+
brotli-size@^4.0.0:
2561+
version "4.0.0"
2562+
resolved "https://registry.yarnpkg.com/brotli-size/-/brotli-size-4.0.0.tgz#a05ee3faad3c0e700a2f2da826ba6b4d76e69e5e"
2563+
integrity sha512-uA9fOtlTRC0iqKfzff1W34DXUA3GyVqbUaeo3Rw3d4gd1eavKVCETXrn3NzO74W+UVkG3UHu8WxUi+XvKI/huA==
2564+
dependencies:
2565+
duplexer "0.1.1"
2566+
25422567
browserify-aes@^1.0.0, browserify-aes@^1.0.4:
25432568
version "1.2.0"
25442569
resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48"
@@ -4378,7 +4403,7 @@ duplexer3@^0.1.4:
43784403
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
43794404
integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=
43804405

4381-
duplexer@^0.1.1:
4406+
duplexer@0.1.1, duplexer@^0.1.1:
43824407
version "0.1.1"
43834408
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
43844409
integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=
@@ -6350,6 +6375,14 @@ gzip-size@3.0.0:
63506375
dependencies:
63516376
duplexer "^0.1.1"
63526377

6378+
gzip-size@^5.1.1:
6379+
version "5.1.1"
6380+
resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.1.1.tgz#cb9bee692f87c0612b232840a873904e4c135274"
6381+
integrity sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==
6382+
dependencies:
6383+
duplexer "^0.1.1"
6384+
pify "^4.0.1"
6385+
63536386
handle-thing@^2.0.0:
63546387
version "2.0.0"
63556388
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.0.tgz#0e039695ff50c93fc288557d696f3c1dc6776754"
@@ -7394,7 +7427,7 @@ is-plain-obj@^2.0.0:
73947427
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.0.0.tgz#7fd1a7f1b69e160cde9181d2313f445c68aa2679"
73957428
integrity sha512-EYisGhpgSCwspmIuRHGjROWTon2Xp8Z7U03Wubk/bTL5TTRC5R1rGVgyjzBrk9+ULdH6cRD06KRcw/xfqhVYKQ==
73967429

7397-
is-plain-object@^2.0.3, is-plain-object@^2.0.4:
7430+
is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
73987431
version "2.0.4"
73997432
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
74007433
integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==
@@ -9087,6 +9120,14 @@ omggif@^1.0.9:
90879120
resolved "https://registry.yarnpkg.com/omggif/-/omggif-1.0.10.tgz#ddaaf90d4a42f532e9e7cb3a95ecdd47f17c7b19"
90889121
integrity sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==
90899122

9123+
omit-deep@^0.3.0:
9124+
version "0.3.0"
9125+
resolved "https://registry.yarnpkg.com/omit-deep/-/omit-deep-0.3.0.tgz#21c8af3499bcadd29651a232cbcacbc52445ebec"
9126+
integrity sha1-IcivNJm8rdKWUaIyy8rLxSRF6+w=
9127+
dependencies:
9128+
is-plain-object "^2.0.1"
9129+
unset-value "^0.1.1"
9130+
90909131
on-finished@~2.3.0:
90919132
version "2.3.0"
90929133
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
@@ -12937,6 +12978,14 @@ unquote@~1.1.1:
1293712978
resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544"
1293812979
integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=
1293912980

12981+
unset-value@^0.1.1:
12982+
version "0.1.2"
12983+
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-0.1.2.tgz#506810b867f27c2a5a6e9b04833631f6de58d310"
12984+
integrity sha1-UGgQuGfyfCpabpsEgzYx9t5Y0xA=
12985+
dependencies:
12986+
has-value "^0.3.1"
12987+
isobject "^3.0.0"
12988+
1294012989
unset-value@^1.0.0:
1294112990
version "1.0.0"
1294212991
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"

0 commit comments

Comments
 (0)