Skip to content

Commit 7ad8d06

Browse files
authored
Upgrade website to Docusaurus using webpack 5 (#11266)
1 parent 26cb29a commit 7ad8d06

File tree

4 files changed

+1133
-2379
lines changed

4 files changed

+1133
-2379
lines changed

netlify.toml

+8
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@
1616
[context.deploy-preview]
1717
command = "yarn workspace jest-website netlify:ci:deployPreview"
1818

19+
20+
[[plugins]]
21+
package = "netlify-plugin-cache"
22+
[plugins.inputs]
23+
paths = [
24+
"website/node_modules/.cache",
25+
]
26+

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"micromatch": "^4.0.4",
6464
"mlh-tsd": "^0.14.1",
6565
"mock-fs": "^4.4.1",
66+
"netlify-plugin-cache": "^1.0.3",
6667
"node-notifier": "^9.0.0",
6768
"prettier": "^2.1.1",
6869
"progress": "^2.0.0",

website/package.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,23 @@
1616
"netlify:prepare": "yarn fetchSupporters && yarn build:js",
1717
"netlify:crowdin": "yarn write-translations && yarn crowdin:upload && yarn crowdin:download"
1818
},
19+
"browserslist": {
20+
"production": [
21+
">0.5%",
22+
"not dead",
23+
"not op_mini all"
24+
],
25+
"development": [
26+
"last 1 chrome version",
27+
"last 1 firefox version",
28+
"last 1 safari version"
29+
]
30+
},
1931
"dependencies": {
20-
"@docusaurus/core": "2.0.0-alpha.c32d8bd11",
21-
"@docusaurus/plugin-client-redirects": "2.0.0-alpha.c32d8bd11",
22-
"@docusaurus/plugin-pwa": "2.0.0-alpha.c32d8bd11",
23-
"@docusaurus/preset-classic": "2.0.0-alpha.c32d8bd11",
32+
"@docusaurus/core": "2.0.0-alpha.75",
33+
"@docusaurus/plugin-client-redirects": "2.0.0-alpha.75",
34+
"@docusaurus/plugin-pwa": "2.0.0-alpha.75",
35+
"@docusaurus/preset-classic": "2.0.0-alpha.75",
2436
"clsx": "^1.1.1",
2537
"fs-extra": "^9.0.1",
2638
"globby": "^11.0.1",

0 commit comments

Comments
 (0)